Refactor authentication system to use username instead of email; implement change password functionality and logging; add NLog for logging support
Some checks failed
Publish Container / publish (push) Failing after 1m9s

This commit is contained in:
MaddoScientisto 2026-03-17 20:08:02 +01:00
commit 6e3371514e
12 changed files with 287 additions and 45 deletions

View file

@ -13,10 +13,10 @@
<div class="alert alert-danger" role="alert">@Error</div>
}
<form method="post" action="/login" class="d-flex flex-column gap-3" style="max-width: 420px;">
<form method="post" action="/api/login" class="d-flex flex-column gap-3" style="max-width: 420px;">
<div>
<label for="email" class="form-label">Email</label>
<input id="email" name="email" value="@Email" autocomplete="username" class="form-control" required />
<label for="username" class="form-label">Username</label>
<input id="username" name="username" value="@Username" autocomplete="username" class="form-control" required />
</div>
<div>
@ -37,7 +37,7 @@
public string? Error { get; set; }
[SupplyParameterFromQuery]
public string? Email { get; set; }
public string? Username { get; set; }
private string SafeReturnUrl =>
string.IsNullOrWhiteSpace(ReturnUrl) || !Uri.IsWellFormedUriString(ReturnUrl, UriKind.Relative)