Fix login issue when on same site
Docker Build and Release Upload / build (push) Has been cancelled

This commit is contained in:
2025-09-09 21:58:08 -07:00
parent f1222b4ec6
commit 0bdc90f054
+2 -1
View File
@@ -51,9 +51,10 @@ namespace Auth.Controllers {
if (BCrypt.Net.BCrypt.Verify(request.Password, test.PasswordHash)) {
test.CurrentPasswordAttempts = 0;
await _databaseService.SetAccount(test);
if (request.Site == "/") {
SignIn(Response, AuthJWT.GenereateJWTToken(test, request.Site, request.StayLoggedIn));
return Ok();
} else {
string Ticket = Guid.NewGuid().ToString().Replace("-", "");
string JWT = AuthJWT.GenereateJWTToken(test, request.Site, request.StayLoggedIn);