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