Authentication works as designed
This commit is contained in:
1 parent
d59d476a6e
commit
792e0abba3
4 files changed
+10
-7
No files matched your search
@@ -51,7 +51,7 @@ namespace BoredCareers.Controllers {
|
||||
} else {
|
||||
test.CurrentPasswordAttempts += 1;
|
||||
await _databaseService.SetAccount(test);
|
||||
return Ok(new Account() { ID = -1, UserName = "Wrong Password" });
|
||||
return NotFound("Wrong Password");
|
||||
}
|
||||
} else {
|
||||
await SendVerify(test.UserName);
|
||||
@@ -92,7 +92,7 @@ namespace BoredCareers.Controllers {
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Console.WriteLine("Register Error: " + ex.Message);
|
||||
return NotFound();
|
||||
return NotFound("An internal server error has occured");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user