mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: paste creation, utilities, revert to gzip, grammar fixes etc
This commit is contained in:
@@ -57,7 +57,8 @@ namespace SharpbinV3.Controllers
|
||||
if (!Bcrypt.Verify(request.Password, user.PasswordHash))
|
||||
return BadRequest(new { message = "Invalid username/email or password." });
|
||||
var token = _authService.GenerateJWTToken(user);
|
||||
return Ok(new { token });
|
||||
await _authService.UpdateLoginTime(user);
|
||||
return Ok(new { token.Result });
|
||||
}
|
||||
[HttpPost]
|
||||
[Route("refresh")]
|
||||
|
||||
Reference in New Issue
Block a user