mirror of
https://github.com/elyby/accounts.git
synced 2024-11-10 07:22: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,
|
||||
'hasMojangUsernameCollision' => $account->hasMojangUsernameCollision(),
|
||||
'shouldAcceptRules' => !$account->isAgreedWithActualRules(),
|
||||
'isOtpEnabled' => (bool)$account->is_otp_enabled,
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,7 @@ class AccountsCurrentCest {
|
||||
'isActive' => true,
|
||||
'hasMojangUsernameCollision' => false,
|
||||
'shouldAcceptRules' => false,
|
||||
'isOtpEnabled' => false,
|
||||
]);
|
||||
$I->canSeeResponseJsonMatchesJsonPath('$.passwordChangedAt');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user