mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-19 11:41:30 +00:00
* Refactor error modal into its own partial * Fix unresolved error string in TwoFactorPartial * Use tuple model instead of ViewData for error title and message * Apply suggestions from code review
33 lines
No EOL
1.2 KiB
Text
33 lines
No EOL
1.2 KiB
Text
@page "/login/setEmail"
|
|
@using LBPUnion.ProjectLighthouse.Configuration
|
|
@using LBPUnion.ProjectLighthouse.Localization.StringLists
|
|
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.Email.SetEmailForm
|
|
|
|
@{
|
|
Layout = "Layouts/BaseLayout";
|
|
Model.Title = "Set an Email Address";
|
|
}
|
|
|
|
<p>This instance requires email verification. As your account was created before this was a requirement, you must now set an email for your account before continuing.</p>
|
|
|
|
@if (!string.IsNullOrWhiteSpace(Model.Error))
|
|
{
|
|
@await Html.PartialAsync("Partials/ErrorModalPartial", (Model.Translate(GeneralStrings.Error), Model.Error), ViewData)
|
|
}
|
|
|
|
<form class="ui form" onsubmit="return onSubmit(this)" method="post">
|
|
@Html.AntiForgeryToken()
|
|
|
|
@if (ServerConfiguration.Instance.Mail.MailEnabled)
|
|
{
|
|
<div class="field">
|
|
<label>Please type a valid email address and verify it:</label>
|
|
<div class="ui left icon input">
|
|
<input type="email" name="emailAddress" id="emailAddress" placeholder="Email Address">
|
|
<i class="mail icon"></i>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
<input type="submit" value="Verify Email Address" id="submit" class="ui blue button">
|
|
</form> |