Skip to content

Commit 2c9bc79

Browse files
committed
chore: update non active user wording
Change-Id: Ia45362097b36210fd549f79de0639ae50bae9fcf
1 parent f713902 commit 2c9bc79

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/Http/Controllers/UserController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,21 +300,21 @@ public function emitOTP()
300300
$send = Request::input("send", "");
301301

302302
if (empty($username)) {
303-
throw new ValidationException("empty username.");
303+
throw new ValidationException("empty username param.");
304304
}
305305

306306
if (empty($connection)) {
307-
throw new ValidationException("empty username.");
307+
throw new ValidationException("empty connectin param.");
308308
}
309309

310310
if (empty($send)) {
311-
throw new ValidationException("empty username.");
311+
throw new ValidationException("empty send param.");
312312
}
313313

314314
$user = $this->auth_service->getUserByUsername($username);
315315

316316
if (!$user->isActive())
317-
throw new ValidationException("User is not active.");
317+
throw new ValidationException("Your user account is currently locked. Please contact support for further assistance.");
318318

319319
$client = null;
320320

app/Services/OAuth2/TokenService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ public function createOTPFromRequest(OAuth2PasswordlessAuthenticationRequest $re
17421742
);
17431743
AddUserAction::dispatch($user->getId(), IPHelper::getUserIp(), "Requested OTP");
17441744
if (!$user->isActive())
1745-
throw new ValidationException("User is not active.");
1745+
throw new ValidationException("Your user account is currently locked. Please contact support for further assistance.");
17461746
}
17471747
return $otp;
17481748
});
@@ -1786,7 +1786,7 @@ public function createOTPFromPayload(array $payload, ?Client $client): OAuth2OTP
17861786
);
17871787
AddUserAction::dispatch($user->getId(), IPHelper::getUserIp(), "Requested OTP");
17881788
if (!$user->isActive())
1789-
throw new ValidationException("User is not active.");
1789+
throw new ValidationException("Your user account is currently locked. Please contact support for further assistance.");
17901790
}
17911791
if (is_null($client)) {
17921792
$this->otp_repository->add($otp);

0 commit comments

Comments
 (0)