diff options
| author | secondl1ght <[email protected]> | 2022-09-24 18:04:33 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-09-24 18:04:33 -0600 |
| commit | b18ed96a00b2d7117008d0fc2350903ba8baec69 (patch) | |
| tree | 9202047ff250af50c0e7ba6d378ac358957b8eac | |
| parent | 5a53862a886c5a384c24e9bdd1966be66c255e93 (diff) | |
| download | coinos-server-b18ed96a00b2d7117008d0fc2350903ba8baec69.tar.gz coinos-server-b18ed96a00b2d7117008d0fc2350903ba8baec69.zip | |
update 2fa message
| -rw-r--r-- | routes/users.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/users.js b/routes/users.js index 60f88562..bf4306d5 100644 --- a/routes/users.js +++ b/routes/users.js @@ -34,7 +34,7 @@ const twofa = (req, res, next) => { (typeof token === "undefined" || !authenticator.check(token, user.otpsecret)) ) { - return res.status(401).send("2fa required"); + return res.status(401).send("2FA required"); } else next(); }; @@ -323,7 +323,7 @@ let login = async (req, res) => { (typeof twofa === "undefined" || !authenticator.check(twofa, user.otpsecret)) ) { - return res.status(401).send("2fa required"); + return res.status(401).send("2FA required"); } l( |
