mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-26 04:28:17 +02:00
Use authInfo obj vs weird params. auth factor 1: factor 2 for 2FA, etc.
This commit is contained in:
parent
57938e761e
commit
23779c3abe
4 changed files with 27 additions and 16 deletions
|
@ -141,7 +141,7 @@ class NNTPServer extends NNTPServerBase {
|
|||
|
||||
return new Promise( resolve => {
|
||||
const user = new User();
|
||||
user.authenticate(username, password, err => {
|
||||
user.authenticateFactor1({ type : User.AuthFactor1Types.Password, username, password }, err => {
|
||||
if(err) {
|
||||
// :TODO: Log IP address
|
||||
this.log.debug( { username, reason : err.message }, 'Authentication failure');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue