mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 21:34:24 +00:00
add more mysql stuff
This commit is contained in:
28
src/server/backend/credentials/2fa.js
Normal file
28
src/server/backend/credentials/2fa.js
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* libreevent - 2fa.js
|
||||
*
|
||||
* Created by Janis Hutz 07/11/2023, Licensed under the GPL V3 License
|
||||
* https://janishutz.com, development@janishutz.com
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
const token = require( '../token.js' );
|
||||
|
||||
class TwoFA {
|
||||
constructor () {
|
||||
this.tokenStore = {};
|
||||
}
|
||||
|
||||
registerStandardAuthentication () {
|
||||
let token = token.generateToken();
|
||||
this.tokenStore[ token ] = 'standard';
|
||||
}
|
||||
|
||||
registerEnhancedAuthentication () {
|
||||
let token = token.generateToken();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = TwoFA;
|
||||
Reference in New Issue
Block a user