backend + web: Set passwords through email confirmation
This commit is contained in:
1 parent
bd8eb65e56
commit
ee5f1d3d10
23 files changed
+281
-110
No files matched your search
@@ -1,6 +1,5 @@
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Helpdesk.Web.Api;
|
||||
using Helpdesk.Web.Auth;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
@@ -213,7 +212,6 @@ public sealed class AdminUsersTests
|
||||
["LastName"] = "Novák",
|
||||
["Email"] = "[email protected]",
|
||||
["Role"] = UserRoles.Student,
|
||||
["Password"] = "Initial-password",
|
||||
["IsActive"] = "true",
|
||||
["EmailConfirmed"] = "false",
|
||||
});
|
||||
@@ -269,13 +267,6 @@ public sealed class AdminUsersTests
|
||||
Assert.Contains("value=\"STUDENT\" selected=\"selected\"", html);
|
||||
}
|
||||
|
||||
private static string AntiforgeryToken(string html)
|
||||
{
|
||||
var token = Regex.Match(html, "name=\"__RequestVerificationToken\"[^>]*value=\"([^\"]+)\"").Groups[1].Value;
|
||||
Assert.NotEmpty(token);
|
||||
return token;
|
||||
}
|
||||
|
||||
private static WebApplicationFactory<Program> CreateApplication(AdminUsersBackend backend) =>
|
||||
new WebApplicationFactory<Program>().WithWebHostBuilder(builder =>
|
||||
builder.ConfigureTestServices(services => services.AddHttpClient(nameof(HelpdeskApiClient))
|
||||
|
||||
@@ -100,9 +100,9 @@ public class ModelStateExtensionsTests
|
||||
var error = new ApiException(HttpStatusCode.BadRequest, "Neplatná vstupní data.",
|
||||
new Dictionary<string, string[]> { ["newPassword"] = ["Heslo musí mít alespoň 8 znaků."] });
|
||||
|
||||
modelState.AddApiErrors(error, typeof(ResetPasswordViewModel));
|
||||
modelState.AddApiErrors(error, typeof(EmailPasswordViewModel));
|
||||
|
||||
Assert.Equal("Heslo musí mít alespoň 8 znaků.", modelState[nameof(ResetPasswordViewModel.NewPassword)]!.Errors.Single().ErrorMessage);
|
||||
Assert.Equal("Heslo musí mít alespoň 8 znaků.", modelState[nameof(EmailPasswordViewModel.NewPassword)]!.Errors.Single().ErrorMessage);
|
||||
Assert.False(modelState.ContainsKey(string.Empty));
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using Helpdesk.Web.Api;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
using Microsoft.AspNetCore.TestHost;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using static Helpdesk.Web.Tests.WebTestSession;
|
||||
|
||||
namespace Helpdesk.Web.Tests;
|
||||
|
||||
public sealed class RegistrationTests
|
||||
{
|
||||
[Fact]
|
||||
public async Task RegistrationRequestsAnEmailAndConfirmationSetsThePassword()
|
||||
{
|
||||
var backend = new RegistrationBackend();
|
||||
await using var application = new WebApplicationFactory<Program>().WithWebHostBuilder(builder =>
|
||||
builder.ConfigureTestServices(services => services.AddHttpClient(nameof(AuthApiClient))
|
||||
.ConfigurePrimaryHttpMessageHandler(() => backend)));
|
||||
using var client = application.CreateClient(new WebApplicationFactoryClientOptions
|
||||
{
|
||||
AllowAutoRedirect = false,
|
||||
BaseAddress = new Uri("https://localhost"),
|
||||
});
|
||||
var ct = TestContext.Current.CancellationToken;
|
||||
|
||||
using var registration = await client.GetAsync("/register", ct);
|
||||
var registerHtml = await registration.Content.ReadAsStringAsync(ct);
|
||||
Assert.DoesNotContain("type=\"password\"", registerHtml);
|
||||
using var registerForm = new FormUrlEncodedContent(new Dictionary<string, string>
|
||||
{
|
||||
["__RequestVerificationToken"] = AntiforgeryToken(registerHtml),
|
||||
["Email"] = "[email protected]",
|
||||
["FirstName"] = "Jan",
|
||||
["LastName"] = "Novák",
|
||||
});
|
||||
using var registered = await client.PostAsync("/register", registerForm, ct);
|
||||
Assert.Equal(HttpStatusCode.OK, registered.StatusCode);
|
||||
var start = Assert.Single(backend.Requests);
|
||||
Assert.Equal("/api/v1/auth/register", start.Path);
|
||||
Assert.False(start.Body.TryGetProperty("password", out _));
|
||||
|
||||
using var link = await client.GetAsync("/confirm-email?token=email-token", ct);
|
||||
var confirmHtml = await link.Content.ReadAsStringAsync(ct);
|
||||
Assert.Contains("name=\"NewPassword\"", confirmHtml);
|
||||
Assert.Contains("name=\"ConfirmPassword\"", confirmHtml);
|
||||
Assert.Single(backend.Requests);
|
||||
var form = new Dictionary<string, string>
|
||||
{
|
||||
["__RequestVerificationToken"] = AntiforgeryToken(confirmHtml),
|
||||
["Token"] = "email-token",
|
||||
["NewPassword"] = "Mailbox-owner-password",
|
||||
["ConfirmPassword"] = "Different-password",
|
||||
};
|
||||
using var invalidForm = new FormUrlEncodedContent(form);
|
||||
using var invalid = await client.PostAsync("/confirm-email", invalidForm, ct);
|
||||
Assert.Equal(HttpStatusCode.OK, invalid.StatusCode);
|
||||
Assert.Contains("Hesla se neshodují.", WebUtility.HtmlDecode(await invalid.Content.ReadAsStringAsync(ct)));
|
||||
Assert.Single(backend.Requests);
|
||||
|
||||
form["ConfirmPassword"] = form["NewPassword"];
|
||||
using var confirmForm = new FormUrlEncodedContent(form);
|
||||
using var confirmed = await client.PostAsync("/confirm-email", confirmForm, ct);
|
||||
Assert.Equal(HttpStatusCode.Redirect, confirmed.StatusCode);
|
||||
Assert.Equal("/login", confirmed.Headers.Location?.OriginalString);
|
||||
var confirmation = backend.Requests[1];
|
||||
Assert.Equal("/api/v1/auth/confirm-email", confirmation.Path);
|
||||
Assert.Equal("email-token", confirmation.Body.GetProperty("token").GetString());
|
||||
Assert.Equal(form["NewPassword"], confirmation.Body.GetProperty("newPassword").GetString());
|
||||
}
|
||||
|
||||
private sealed class RegistrationBackend : HttpMessageHandler
|
||||
{
|
||||
public List<(string Path, JsonElement Body)> Requests { get; } = [];
|
||||
|
||||
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken ct)
|
||||
{
|
||||
Assert.Equal(HttpMethod.Post, request.Method);
|
||||
var path = request.RequestUri!.AbsolutePath;
|
||||
using var json = JsonDocument.Parse(await request.Content!.ReadAsStringAsync(ct));
|
||||
Requests.Add((path, json.RootElement.Clone()));
|
||||
if (path == "/api/v1/auth/confirm-email")
|
||||
return new HttpResponseMessage(HttpStatusCode.NoContent);
|
||||
|
||||
Assert.Equal("/api/v1/auth/register", path);
|
||||
return new HttpResponseMessage(HttpStatusCode.Created)
|
||||
{
|
||||
Content = new StringContent("""
|
||||
{"id":7,"email":"[email protected]","firstName":"Jan","lastName":"Novák","role":"STUDENT","emailNotificationsEnabled":true}
|
||||
""", Encoding.UTF8, "application/json"),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using Helpdesk.Web.Api;
|
||||
using Helpdesk.Web.Auth;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
@@ -9,6 +10,13 @@ namespace Helpdesk.Web.Tests;
|
||||
|
||||
internal static class WebTestSession
|
||||
{
|
||||
public static string AntiforgeryToken(string html)
|
||||
{
|
||||
var token = Regex.Match(html, "name=\"__RequestVerificationToken\"[^>]*value=\"([^\"]+)\"").Groups[1].Value;
|
||||
Assert.NotEmpty(token);
|
||||
return token;
|
||||
}
|
||||
|
||||
public static void SignIn(IServiceProvider services, HttpClient client, string role)
|
||||
{
|
||||
var scheme = CookieAuthenticationDefaults.AuthenticationScheme;
|
||||
|
||||
@@ -34,11 +34,11 @@ public sealed record TokenSet(
|
||||
|
||||
public sealed record LoginRequest(string Email, string Password);
|
||||
|
||||
public sealed record RegisterRequest(string Email, string Password, string FirstName, string LastName);
|
||||
public sealed record RegisterRequest(string Email, string FirstName, string LastName);
|
||||
|
||||
public sealed record RefreshTokenRequest(string RefreshToken);
|
||||
|
||||
public sealed record EmailTokenRequest(string Token);
|
||||
public sealed record ConfirmEmailRequest(string Token, string NewPassword);
|
||||
|
||||
public sealed record ForgotPasswordRequest(string Email);
|
||||
|
||||
|
||||
@@ -22,9 +22,9 @@ public sealed class AuthApiClient(HttpClient http)
|
||||
return await ApiResponse.ReadAsync<UserDto>(response, ct);
|
||||
}
|
||||
|
||||
public async Task ConfirmEmailAsync(string token, CancellationToken ct)
|
||||
public async Task ConfirmEmailAsync(ConfirmEmailRequest request, CancellationToken ct)
|
||||
{
|
||||
using var response = await http.PostAsJsonAsync("auth/confirm-email", new EmailTokenRequest(token), ct);
|
||||
using var response = await http.PostAsJsonAsync("auth/confirm-email", request, ct);
|
||||
await ApiResponse.EnsureSuccessAsync(response, ct);
|
||||
}
|
||||
|
||||
|
||||
@@ -66,39 +66,42 @@ public sealed class AccountController(AuthApiClient authApi, HelpdeskApiClient a
|
||||
try
|
||||
{
|
||||
var user = await authApi.RegisterAsync(
|
||||
new RegisterRequest(model.Email.Trim(), model.Password, model.FirstName.Trim(), model.LastName.Trim()), ct);
|
||||
new RegisterRequest(model.Email.Trim(), model.FirstName.Trim(), model.LastName.Trim()), ct);
|
||||
return View("RegisterDone", user.Email);
|
||||
}
|
||||
catch (ApiException ex) when (ex.StatusCode is HttpStatusCode.BadRequest or HttpStatusCode.Conflict or HttpStatusCode.TooManyRequests)
|
||||
{
|
||||
// 400 cizí doména nebo validace, 409 účet už existuje.
|
||||
ModelState.AddApiErrors(ex, typeof(RegisterViewModel));
|
||||
model.Password = model.ConfirmPassword = "";
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Odkaz z registračního e-mailu. Token se spotřebuje až tlačítkem, ne samotným otevřením odkazu.</summary>
|
||||
/// <summary>Odkaz z ověřovacího e-mailu. Token se spotřebuje při uložení hesla.</summary>
|
||||
[AllowAnonymous]
|
||||
[HttpGet("confirm-email")]
|
||||
public IActionResult ConfirmEmail(string? token) => View(new EmailTokenViewModel { Token = token ?? "" });
|
||||
public IActionResult ConfirmEmail(string? token) => View(new EmailPasswordViewModel { Token = token ?? "" });
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost("confirm-email")]
|
||||
public async Task<IActionResult> ConfirmEmail(EmailTokenViewModel model, CancellationToken ct)
|
||||
public async Task<IActionResult> ConfirmEmail(EmailPasswordViewModel model, CancellationToken ct)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
model.NewPassword = model.ConfirmPassword = "";
|
||||
return View(model);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
await authApi.ConfirmEmailAsync(model.Token, ct);
|
||||
TempData.SetSuccess("E-mail je ověřený. Teď se můžete přihlásit.");
|
||||
await authApi.ConfirmEmailAsync(new ConfirmEmailRequest(model.Token, model.NewPassword), ct);
|
||||
TempData.SetSuccess("E-mail je ověřený. Teď se můžete přihlásit nastaveným heslem.");
|
||||
return RedirectToAction(nameof(Login));
|
||||
}
|
||||
catch (ApiException ex) when (ex.StatusCode is HttpStatusCode.BadRequest or HttpStatusCode.TooManyRequests)
|
||||
{
|
||||
ModelState.AddModelError(string.Empty, ex.UserMessage);
|
||||
ModelState.AddApiErrors(ex, typeof(EmailPasswordViewModel));
|
||||
model.NewPassword = model.ConfirmPassword = "";
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
@@ -128,11 +131,11 @@ public sealed class AccountController(AuthApiClient authApi, HelpdeskApiClient a
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpGet("reset-password")]
|
||||
public IActionResult ResetPassword(string? token) => View(new ResetPasswordViewModel { Token = token ?? "" });
|
||||
public IActionResult ResetPassword(string? token) => View(new EmailPasswordViewModel { Token = token ?? "" });
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost("reset-password")]
|
||||
public async Task<IActionResult> ResetPassword(ResetPasswordViewModel model, CancellationToken ct)
|
||||
public async Task<IActionResult> ResetPassword(EmailPasswordViewModel model, CancellationToken ct)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
@@ -146,7 +149,7 @@ public sealed class AccountController(AuthApiClient authApi, HelpdeskApiClient a
|
||||
}
|
||||
catch (ApiException ex) when (ex.StatusCode is HttpStatusCode.BadRequest or HttpStatusCode.TooManyRequests)
|
||||
{
|
||||
ModelState.AddApiErrors(ex, typeof(ResetPasswordViewModel));
|
||||
ModelState.AddApiErrors(ex, typeof(EmailPasswordViewModel));
|
||||
model.NewPassword = model.ConfirmPassword = "";
|
||||
return View(model);
|
||||
}
|
||||
|
||||
@@ -171,8 +171,8 @@ public sealed class AdminUsersController(HelpdeskApiClient api) : Controller
|
||||
|
||||
model.Id = id;
|
||||
model.Query = query;
|
||||
if (id is null && string.IsNullOrWhiteSpace(model.Password))
|
||||
ModelState.AddModelError(nameof(model.Password), "Zadejte počáteční heslo.");
|
||||
if (id is null && model.EmailConfirmed && string.IsNullOrWhiteSpace(model.Password))
|
||||
ModelState.AddModelError(nameof(model.Password), "Při ručním ověření e-mailu zadejte počáteční heslo.");
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
try
|
||||
|
||||
@@ -43,25 +43,6 @@ public sealed class RegisterViewModel
|
||||
[StringLength(100, ErrorMessage = "Příjmení může mít nejvýše 100 znaků.")]
|
||||
[Display(Name = "Příjmení")]
|
||||
public string LastName { get; set; } = "";
|
||||
|
||||
[Required(ErrorMessage = "Zadejte heslo.")]
|
||||
[StringLength(PasswordRules.MaxLength, MinimumLength = PasswordRules.MinLength, ErrorMessage = PasswordRules.LengthMessage)]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Heslo")]
|
||||
public string Password { get; set; } = "";
|
||||
|
||||
[Required(ErrorMessage = "Zadejte heslo znovu.")]
|
||||
[Compare(nameof(Password), ErrorMessage = "Hesla se neshodují.")]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Heslo znovu")]
|
||||
public string ConfirmPassword { get; set; } = "";
|
||||
}
|
||||
|
||||
/// <summary>Stránka z odkazu v e-mailu – token se odešle až tlačítkem.</summary>
|
||||
public sealed class EmailTokenViewModel
|
||||
{
|
||||
[Required]
|
||||
public string Token { get; set; } = "";
|
||||
}
|
||||
|
||||
public sealed class ForgotPasswordViewModel
|
||||
@@ -72,7 +53,7 @@ public sealed class ForgotPasswordViewModel
|
||||
public string Email { get; set; } = "";
|
||||
}
|
||||
|
||||
public sealed class ResetPasswordViewModel
|
||||
public sealed class EmailPasswordViewModel
|
||||
{
|
||||
[Required]
|
||||
public string Token { get; set; } = "";
|
||||
|
||||
@@ -1,27 +1,28 @@
|
||||
@model EmailTokenViewModel
|
||||
@model EmailPasswordViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Ověření e-mailu";
|
||||
var failed = !ViewData.ModelState.IsValid || string.IsNullOrEmpty(Model.Token);
|
||||
}
|
||||
|
||||
<section class="app-auth">
|
||||
<h1>Ověření e-mailu</h1>
|
||||
<div class="app-card">
|
||||
@if (failed)
|
||||
@if (string.IsNullOrEmpty(Model.Token))
|
||||
{
|
||||
<partial name="_FormErrors" />
|
||||
<p class="mb-0">Odkaz je neplatný, už byl použit, nebo vypršel. Pokud jste e-mail už ověřili, stačí se přihlásit.</p>
|
||||
<p class="mb-0">Odkaz je neúplný. Otevřete ho prosím znovu z e-mailu.</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>Dokončete registraci potvrzením svého e-mailu.</p>
|
||||
<form method="post" asp-action="ConfirmEmail">
|
||||
<p>Nastavením hesla ověříte svůj e-mail.</p>
|
||||
<partial name="_FormErrors" />
|
||||
<form method="post" asp-action="ConfirmEmail" novalidate>
|
||||
<input type="hidden" asp-for="Token" />
|
||||
<button type="submit" class="btn btn-primary w-100">Ověřit e-mail</button>
|
||||
<partial name="_NewPasswordFields" />
|
||||
<button type="submit" class="btn btn-primary w-100">Ověřit e-mail a nastavit heslo</button>
|
||||
</form>
|
||||
}
|
||||
</div>
|
||||
<div class="app-auth-links">
|
||||
<a asp-action="Register">Poslat nový ověřovací odkaz</a>
|
||||
<a asp-action="Login">Přejít na přihlášení</a>
|
||||
</div>
|
||||
</section>
|
||||
@@ -27,18 +27,7 @@
|
||||
<span asp-validation-for="LastName" class="invalid-feedback d-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label asp-for="Password" class="form-label"></label>
|
||||
<input asp-for="Password" class="form-control" autocomplete="new-password" aria-describedby="passwordHelp" />
|
||||
<div id="passwordHelp" class="form-text">8 až 64 znaků.</div>
|
||||
<span asp-validation-for="Password" class="invalid-feedback d-block"></span>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label asp-for="ConfirmPassword" class="form-label"></label>
|
||||
<input asp-for="ConfirmPassword" class="form-control" autocomplete="new-password" />
|
||||
<span asp-validation-for="ConfirmPassword" class="invalid-feedback d-block"></span>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary w-100">Zaregistrovat se</button>
|
||||
<button type="submit" class="btn btn-primary w-100">Poslat ověřovací e-mail</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<h1>Ověřte svůj e-mail</h1>
|
||||
<div class="app-card">
|
||||
<p>Na adresu <strong>@Model</strong> jsme poslali odkaz pro ověření e-mailu. Platí 24 hodin.</p>
|
||||
<p class="mb-0 text-body-secondary">Po ověření se budete moct přihlásit. Pokud e-mail nevidíte, podívejte se i do nevyžádané pošty.</p>
|
||||
<p class="mb-0 text-body-secondary">Po otevření odkazu si nastavíte heslo k účtu. Pokud e-mail nevidíte, podívejte se i do nevyžádané pošty.</p>
|
||||
</div>
|
||||
<div class="app-auth-links">
|
||||
<a asp-action="Login">Zpět na přihlášení</a>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@model ResetPasswordViewModel
|
||||
@model EmailPasswordViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Nové heslo";
|
||||
}
|
||||
@@ -16,17 +16,8 @@
|
||||
<partial name="_FormErrors" />
|
||||
<form method="post" asp-action="ResetPassword" novalidate>
|
||||
<input type="hidden" asp-for="Token" />
|
||||
<div class="mb-3">
|
||||
<label asp-for="NewPassword" class="form-label"></label>
|
||||
<input asp-for="NewPassword" class="form-control" autocomplete="new-password" autofocus aria-describedby="passwordHelp" />
|
||||
<div id="passwordHelp" class="form-text">8 až 64 znaků. Po změně budete odhlášeni na všech zařízeních.</div>
|
||||
<span asp-validation-for="NewPassword" class="invalid-feedback d-block"></span>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label asp-for="ConfirmPassword" class="form-label"></label>
|
||||
<input asp-for="ConfirmPassword" class="form-control" autocomplete="new-password" />
|
||||
<span asp-validation-for="ConfirmPassword" class="invalid-feedback d-block"></span>
|
||||
</div>
|
||||
<partial name="_NewPasswordFields" />
|
||||
<p class="form-text">Po změně hesla budete odhlášeni na všech zařízeních.</p>
|
||||
<button type="submit" class="btn btn-primary w-100">Nastavit heslo</button>
|
||||
</form>
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
@model EmailPasswordViewModel
|
||||
|
||||
<div class="mb-3">
|
||||
<label asp-for="NewPassword" class="form-label"></label>
|
||||
<input asp-for="NewPassword" class="form-control" autocomplete="new-password" autofocus aria-describedby="passwordHelp" />
|
||||
<div id="passwordHelp" class="form-text">8 až 64 znaků.</div>
|
||||
<span asp-validation-for="NewPassword" class="invalid-feedback d-block"></span>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<label asp-for="ConfirmPassword" class="form-label"></label>
|
||||
<input asp-for="ConfirmPassword" class="form-control" autocomplete="new-password" />
|
||||
<span asp-validation-for="ConfirmPassword" class="invalid-feedback d-block"></span>
|
||||
</div>
|
||||
@@ -54,7 +54,11 @@
|
||||
<div class="col-sm-6">
|
||||
<label asp-for="Password" class="form-label">@(isNew ? "Počáteční heslo" : "Nové heslo")</label>
|
||||
<input asp-for="Password" class="form-control" autocomplete="new-password" />
|
||||
@if (!isNew)
|
||||
@if (isNew)
|
||||
{
|
||||
<div class="form-text">Heslo vyplňte při ručním ověření e-mailu.</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="form-text">Prázdné pole ponechá stávající heslo.</div>
|
||||
}
|
||||
@@ -77,7 +81,7 @@
|
||||
<input asp-for="EmailConfirmed" type="radio" value="true" id="verification-direct" class="form-check-input" />
|
||||
<label for="verification-direct" class="form-check-label">Ověřit e-mail ručně</label>
|
||||
</div>
|
||||
<p class="form-text mb-0">Ověřovací odkaz se odešle, pokud je účet aktivní. Při ručním ověření se aktivní uživatel může přihlásit hned.</p>
|
||||
<p class="form-text mb-0">Aktivnímu účtu pošleme odkaz pro nastavení hesla. Při ručním ověření se aktivní uživatel může přihlásit hned.</p>
|
||||
</fieldset>
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user