mirror of
https://github.com/elyby/accounts.git
synced 2024-12-28 16:10:40 +05:30
Добавлен запрос пароля для запроса инициализации смены email
This commit is contained in:
parent
81bdb1f2af
commit
c855cdb394
@ -130,6 +130,16 @@ class TestData {
|
||||
public function beforeAccountEmailVerification(Request $request): ?array {
|
||||
$httpAuth = $request->getHeaders()->get('authorization');
|
||||
if ($httpAuth === 'Bearer dummy_token') {
|
||||
$password = $request->post('password');
|
||||
if (empty($password)) {
|
||||
return [
|
||||
'success' => false,
|
||||
'errors' => [
|
||||
'password' => 'error.password_required',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
'success' => true,
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user