Added user add modal and converted to dark mode

This commit is contained in:
2024-08-02 20:53:43 +02:00
parent 69c58e61fc
commit b57e1ca8cf
11 changed files with 197 additions and 26 deletions

View File

@@ -4,4 +4,8 @@ namespace HopFrame.Web.Model;
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('.');
}

View File

@@ -0,0 +1,5 @@
namespace HopFrame.Web.Model;
public class UserAdd : RegisterData {
public string Group { get; set; }
}