backend + web: Set passwords through email confirmation

This commit is contained in:
GonnaHetzMe committed 2026-12-04 20:14:00 +01:00
1 parent bd8eb65e56
commit ee5f1d3d10
23 files changed
+281 -110

No files matched your search

@@ -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