From 0c63a1fe21ebb40cc87a80175e01df32d4a61b48 Mon Sep 17 00:00:00 2001 From: smarcet Date: Fri, 23 Oct 2020 13:31:09 -0300 Subject: [PATCH] Updated user error updated non verified user wording Change-Id: I880baec469f676cd990efdd2462e28508f4016ff Signed-off-by: smarcet --- app/libs/Auth/CustomAuthProvider.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/libs/Auth/CustomAuthProvider.php b/app/libs/Auth/CustomAuthProvider.php index 10f04af3..95d64c3d 100644 --- a/app/libs/Auth/CustomAuthProvider.php +++ b/app/libs/Auth/CustomAuthProvider.php @@ -122,14 +122,14 @@ class CustomAuthProvider implements UserProvider if (is_null($user)) //user must exists { - throw new AuthenticationException(sprintf("user %s does not exists!", $email)); + throw new AuthenticationException(sprintf("User %s does not exists.", $email)); } if(!$user->canLogin()) { if(!$user->isEmailVerified()) - throw new UnverifiedEmailMemberException(sprintf("user %s is not verified yet!", $email)); - throw new AuthenticationException(sprintf("user %s does not exists!", $email)); + throw new UnverifiedEmailMemberException(sprintf("User %s is not yet verified; check your email and click on the confirmation link before trying to log in again.", $email)); + throw new AuthenticationException(sprintf("User %s does not exists.", $email)); } $valid_password = $user->checkPassword($password); @@ -144,7 +144,7 @@ class CustomAuthProvider implements UserProvider if (!$user->isActive()) { Log::warning(sprintf("user %s is on lock state", $email)); throw new AuthenticationLockedUserLoginAttempt($email, - sprintf("user %s is on lock state", $email)); + sprintf("User %s is locked.", $email)); } //update user fields