-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Hi all,
When we create a custom column in table users
, for example phone_number
.
And then we set the value to
/**
* --------------------------------------------------------------------
* Valid login fields
* --------------------------------------------------------------------
* Fields that are available to be used as credentials for login.
*/
public array $validFields = [
// 'email',
//'username',
'phone_number',
];
It is not possible to log into the system. If there should be no problem to login.
We need to make some changes in this area.
shield/src/Authentication/Authenticators/Session.php
Lines 251 to 258 in 7855d91
$idType = (! isset($credentials['email']) && isset($credentials['username'])) | |
? self::ID_TYPE_USERNAME | |
: self::ID_TYPE_EMAIL_PASSWORD; | |
$this->loginModel->recordLoginAttempt( | |
$idType, | |
$credentials['email'] ?? $credentials['username'], | |
$success, |
Do you agree?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request