mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-18 15:42:26 +00:00
* Initial work for user settings page * Finish user setting and slot setting pages * Don't show slot upload date on home page and fix team pick redirection * Fix upload image button alignment on mobile * Fix image upload on iPhone * Remove unused css and add selected button color * Fix login email check and bump ChromeDriver to 105 * Remove duplicated code and allow users to leave fields empty * Add unpublish button on level settings and move settings button position * Don't show edit button on mini card * Self review bug fixes and users can no longer use an in-use email
40 lines
No EOL
1.4 KiB
Text
40 lines
No EOL
1.4 KiB
Text
@page "/login/setEmail"
|
|
@using LBPUnion.ProjectLighthouse.Configuration
|
|
@using LBPUnion.ProjectLighthouse.Localization.StringLists
|
|
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.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))
|
|
{
|
|
<div class="ui negative message">
|
|
<div class="header">
|
|
@Model.Translate(GeneralStrings.Error)
|
|
</div>
|
|
<p style="white-space: pre-line">@Model.Error</p>
|
|
</div>
|
|
}
|
|
|
|
<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>
|
|
|
|
<input type="hidden" name="token" id="token" value="@Model.EmailToken?.EmailToken">
|
|
</div>
|
|
}
|
|
|
|
<input type="submit" value="Verify Email Address" id="submit" class="ui blue button">
|
|
</form> |