Converted edit page to modal and added edit and create permissions

This commit is contained in:
2024-08-03 11:57:10 +02:00
parent b57e1ca8cf
commit 4ba55686a5
6 changed files with 394 additions and 367 deletions

View File

@@ -6,6 +6,6 @@ public class RegisterData : UserRegister {
public string RepeatedPassword { get; set; }
public bool PasswordsMatch => Password == RepeatedPassword;
public bool PasswordIsValid => Password.Length >= 8;
public bool EmailIsValid => Email.Contains('@') && Email.Contains('.') && !Email.EndsWith('.');
public bool PasswordIsValid => Password?.Length >= 8;
public bool EmailIsValid => Email?.Contains('@') == true && Email?.Contains('.') == true && Email?.EndsWith('.') == false;
}