mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Cleanup code, improve typings
This commit is contained in:
@@ -107,7 +107,7 @@ class AuthenticationController extends Controller {
|
||||
],
|
||||
];
|
||||
|
||||
if ($model->getLoginAttribute() !== 'email') {
|
||||
if (strpos($model->login, '@') === false) {
|
||||
$response['data']['emailMask'] = StringHelper::getEmailMask($model->getAccount()->email);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user