mirror of
https://github.com/elyby/accounts.git
synced 2025-02-06 00:50:00 +05:30
В запрос /currect добавлен вывод состояния включённости OTP авторизации
This commit is contained in:
parent
a2e1e9a805
commit
e82b8aa8cf
@ -69,6 +69,7 @@ class AccountsController extends Controller {
|
|||||||
'passwordChangedAt' => $account->password_changed_at,
|
'passwordChangedAt' => $account->password_changed_at,
|
||||||
'hasMojangUsernameCollision' => $account->hasMojangUsernameCollision(),
|
'hasMojangUsernameCollision' => $account->hasMojangUsernameCollision(),
|
||||||
'shouldAcceptRules' => !$account->isAgreedWithActualRules(),
|
'shouldAcceptRules' => !$account->isAgreedWithActualRules(),
|
||||||
|
'isOtpEnabled' => (bool)$account->is_otp_enabled,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ class AccountsCurrentCest {
|
|||||||
'isActive' => true,
|
'isActive' => true,
|
||||||
'hasMojangUsernameCollision' => false,
|
'hasMojangUsernameCollision' => false,
|
||||||
'shouldAcceptRules' => false,
|
'shouldAcceptRules' => false,
|
||||||
|
'isOtpEnabled' => false,
|
||||||
]);
|
]);
|
||||||
$I->canSeeResponseJsonMatchesJsonPath('$.passwordChangedAt');
|
$I->canSeeResponseJsonMatchesJsonPath('$.passwordChangedAt');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user