We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 981463f commit 7adb846Copy full SHA for 7adb846
2 files changed
app/Http/Controllers/UserController.php
@@ -314,6 +314,10 @@ public function emitOTP()
314
315
$user = $this->auth_service->getUserByUsername($username);
316
317
+ if (is_null($user)) {
318
+ throw new EntityNotFoundException();
319
+ }
320
+
321
if (!$user->isActive())
322
throw new ValidationException
323
(
resources/js/login/login.js
@@ -509,6 +509,10 @@ class LoginPage extends React.Component {
509
});
510
}, (error) => {
511
let {response, status, message} = error;
512
+ if(status == 404){
513
+ this.showAlert('We couldn\'t find an account with the email provided.', 'error');
514
+ return;
515
516
if(status == 412){
517
const {message, errors} = response.body;
518
this.showAlert(errors[0], 'error');
0 commit comments