2026-10-01 11:52:31 +02:00
@page "/oauth/login"
@model PrivaPub.Web.Pages.OAuth.LoginModel
2026-10-17 04:02:47 +02:00
@inject PrivaPub.Domain.Instance.IInstanceSettings InstanceSettings
2026-10-01 11:52:31 +02:00
@{
ViewData["Title"] = "Sign in";
}
2026-10-17 04:02:47 +02:00
<header><h1>Sign in to @InstanceSettings.Current.Title</h1></header>
2026-10-01 11:52:31 +02:00
<p class="meta">Sign in with your private login. You will then choose which persona the application acts as; the
application never sees the login.</p>
<form method="post">
<input type="hidden" name="ReturnUrl" value="@Model.ReturnUrl">
<p><label>Username<br><input name="UserName" autocomplete="username" required autofocus></label></p>
<p><label>Password<br><input name="Password" type="password" autocomplete="current-password" required></label></p>
2026-10-17 03:18:19 +02:00
<p><label>Code from your authenticator app (only with two-factor sign-in)<br><input name="OneTimeCode" autocomplete="one-time-code" inputmode="text" maxlength="32"></label></p>
2026-10-01 11:52:31 +02:00
@if (Model.Error != default)
{
<p role="alert">@Model.Error</p>
}
<p><button type="submit">Sign in</button></p>
</form>