fix: change emailPassword factor from email to password
This commit is contained in:
parent
a877850707
commit
18e4385ca5
|
@ -266,7 +266,7 @@ App::post('/v1/account/sessions/email')
|
|||
'secret' => Auth::hash($secret), // One way hash encryption to protect DB leak
|
||||
'userAgent' => $request->getUserAgent('UNKNOWN'),
|
||||
'ip' => $request->getIP(),
|
||||
'factors' => ['email'],
|
||||
'factors' => ['password'],
|
||||
'countryCode' => ($record) ? \strtolower($record['country']['iso_code']) : '--',
|
||||
'expire' => DateTime::addSeconds(new \DateTime(), $duration)
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue