feat(giftcard): add customer giftcard/mine endpoint; fix admin/app password digit normalization
This commit is contained in:
@@ -150,6 +150,8 @@ class CustomerController extends SuperController
|
||||
|
||||
if (array_key_exists('password', $data) && trim((string) ($data['password'] ?? '')) === '') {
|
||||
unset($data['password']);
|
||||
} elseif (array_key_exists('password', $data)) {
|
||||
$data['password'] = Customer::normalizeCredentialDigits(trim((string) $data['password']));
|
||||
}
|
||||
|
||||
if (isset($data['mobile']) && ! is_null($data['mobile']) && $data['mobile'] !== '') {
|
||||
|
||||
Reference in New Issue
Block a user