mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
revert formatting
This commit is contained in:
parent
9d038e11da
commit
4c797f95ca
@ -12,10 +12,7 @@ const createLocalStrategy = (strapi, middleware) => {
|
||||
},
|
||||
(email, password, done) => {
|
||||
return strapi.admin.services.auth
|
||||
.checkCredentials({
|
||||
email: toLower(email),
|
||||
password,
|
||||
})
|
||||
.checkCredentials({ email: toLower(email), password })
|
||||
.then(async ([error, user, message]) => {
|
||||
if (middleware) {
|
||||
return middleware([error, user, message], done);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user