Fixed ReturnUrl not working
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
@using Microsoft.Extensions.Primitives
|
||||
@using Server.Services
|
||||
@inject LocalizationService T
|
||||
@{
|
||||
@@ -9,6 +10,10 @@
|
||||
<h1>Login</h1>
|
||||
<form asp-action="Login" method="post" class="mt-4" style="max-width: 400px; margin: auto;">
|
||||
<div class="form-group mb-3">
|
||||
@if (Context.Request.Query.TryGetValue("ReturnUrl", out StringValues returnUrl))
|
||||
{
|
||||
<input type="hidden" name="ReturnUrl" value="@(returnUrl)" />
|
||||
}
|
||||
<label for="username" class="form-label">@T["Username"]</label>
|
||||
<input autofocus type="text" class="form-control" id="username" name="username" autocomplete="username" required>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user