feat(giftcard): add customer giftcard/mine endpoint; fix admin/app password digit normalization
This commit is contained in:
@@ -54,6 +54,12 @@ class AuthController extends Controller
|
||||
|
||||
protected function _loginWithPassword($credentials, $provider)
|
||||
{
|
||||
if (isset($credentials['password'])) {
|
||||
$credentials['password'] = Customer::normalizeCredentialDigits(
|
||||
trim((string) $credentials['password'])
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
$provider === 'customer'
|
||||
&& isset($credentials['mobile'], $credentials['password'])
|
||||
|
||||
Reference in New Issue
Block a user