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
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user