[backend] Code cleanup
This commit is contained in:
parent
c7d0280eb6
commit
1d02ad1073
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ public class AdminController(
|
|||
public async Task ResetPassword(string id, [FromBody] ResetPasswordRequest request)
|
||||
{
|
||||
var settings = await db.UserSettings.FirstOrDefaultAsync(p => p.UserId == id) ??
|
||||
throw GracefulException.RecordNotFound();
|
||||
throw GracefulException.RecordNotFound();
|
||||
|
||||
if (request.Password.Length < 8)
|
||||
throw GracefulException.BadRequest("Password must be at least 8 characters long");
|
||||
|
|
Loading…
Add table
Reference in a new issue