1
0
Fork 0
mirror of synced 2024-06-27 18:50:47 +12:00

fix: change emailPassword factor from email to password

This commit is contained in:
Torsten Dittmann 2024-02-21 18:18:56 +01:00
parent a877850707
commit 18e4385ca5

View file

@ -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)
],