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