Since the api calls the standard login controller https://github.com/NodeBB/NodeBB/blob/master/src/controllers/write/utilities.js#L32 it behaves the same as someone going to /login and logging in.
Local login take a long time...
Solved
Technical Support
-
Why "local login" take 13s to process? Is this a bug?
Version v1.2.1, using mongodb, new setup without much plugins.Please advise, thanks.
-
Yes, I should've mentioned (@pichalite brought me back here), you can also replace our use of bcryptjs with bcrypt.
npm i bcrypt
and then edit thebcrypt.js
file in NodeBB and changevar bcrypt = require('bcryptjs'),
to read
var bcrypt = require('bcrypt'),
Restart NodeBB and try again.
-
@julian said in Local login take a long time...:
var bcrypt = require('bcryptjs')
Many thanks @julian and guys, you save my day. It is working now, reduce to ~700ms.
Suggested Topics
-
API logins counted?
Unsolved Technical Support -
-
-
-
Copyright © 2023 NodeBB | Contributors