2020-09-05 12:16:48 +02:00
|
|
|
@model BTCPayServer.Controllers.RegisterFromAdminViewModel
|
2020-07-02 19:32:24 +02:00
|
|
|
@{
|
2021-12-16 11:17:02 +01:00
|
|
|
ViewData.SetActivePage(ServerNavPages.Users, "Create account");
|
2020-07-02 19:32:24 +02:00
|
|
|
}
|
|
|
|
|
2022-01-18 02:19:27 +01:00
|
|
|
<h3 class="mb-4">@ViewData["Title"]</h3>
|
2020-07-02 19:32:24 +02:00
|
|
|
|
|
|
|
<div class="row">
|
2022-01-27 03:56:46 +01:00
|
|
|
<div class="col-xl-6 col-xxl-constrain">
|
2020-07-02 19:32:24 +02:00
|
|
|
<form method="post" asp-action="CreateUser">
|
|
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2021-06-06 13:44:54 +02:00
|
|
|
<label asp-for="Email" class="form-label"></label>
|
2020-07-02 19:32:24 +02:00
|
|
|
<input asp-for="Email" required="required" class="form-control"/>
|
|
|
|
<span asp-validation-for="Email" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2021-06-06 13:44:54 +02:00
|
|
|
<label asp-for="Password" class="form-label"></label>
|
2020-09-05 12:16:48 +02:00
|
|
|
<input asp-for="Password" class="form-control"/>
|
2020-07-02 19:32:24 +02:00
|
|
|
<span asp-validation-for="Password" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2021-06-06 13:44:54 +02:00
|
|
|
<label asp-for="ConfirmPassword" class="form-label"></label>
|
2020-09-05 12:16:48 +02:00
|
|
|
<input asp-for="ConfirmPassword" class="form-control"/>
|
2020-07-02 19:32:24 +02:00
|
|
|
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if (ViewData["AllowIsAdmin"] is true)
|
|
|
|
{
|
2020-07-13 19:08:47 +02:00
|
|
|
<div class="form-group form-check">
|
|
|
|
<input asp-for="IsAdmin" type="checkbox" class="form-check-input"/>
|
|
|
|
<label asp-for="IsAdmin" class="form-check-label"></label>
|
2020-07-02 19:32:24 +02:00
|
|
|
<span asp-validation-for="IsAdmin" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
}
|
2020-09-05 12:16:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
@if (ViewData["AllowRequestEmailConfirmation"] is true)
|
|
|
|
{
|
|
|
|
<div class="form-group form-check">
|
|
|
|
<input asp-for="EmailConfirmed" type="checkbox" class="form-check-input"/>
|
|
|
|
<label asp-for="EmailConfirmed" class="form-check-label"></label>
|
|
|
|
<span asp-validation-for="EmailConfirmed" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
}
|
2020-07-02 19:32:24 +02:00
|
|
|
|
2021-11-24 09:59:19 +01:00
|
|
|
<button id="Save" type="submit" class="btn btn-primary mt-2" name="command" value="Save">Create account</button>
|
2020-07-02 19:32:24 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|