Skip to content

Commit

Permalink
fix(user): update the source of validation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Jan 7, 2024
1 parent 4aa51b4 commit 77dfda4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private static function makeIdentityValidation(
$individual_name = static::getIndividualName();

$usernameRules = array_merge(
config("AuthSession")->usernameValidationRules,
config("Auth")->usernameValidationRules,
[
sprintf(
"is_unique[%s.username,id,$current_user_id]",
Expand All @@ -91,7 +91,7 @@ private static function makeIdentityValidation(
]
);
$emailRules = array_merge(
config("AuthSession")->emailValidationRules,
config("Auth")->emailValidationRules,
[
sprintf(
"is_unique[%s.secret,id,$current_user_id]",
Expand Down

0 comments on commit 77dfda4

Please sign in to comment.