From 18e4385ca5cfaaa0ff6ba6bd7902cf4f5f28f3fc Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 21 Feb 2024 18:18:56 +0100 Subject: [PATCH] fix: change emailPassword factor from email to password --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 07b88210c..4b3948be7 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -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) ],