feat(giftcard): add customer giftcard/mine endpoint; fix admin/app password digit normalization

This commit is contained in:
2026-09-09 16:57:20 +03:30
parent 741faa38fb
commit 0fa2b4d1f5
8 changed files with 243 additions and 8 deletions
@@ -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'])