11 lines
407 B
C#
11 lines
407 B
C#
using HopFrame.Security.Models;
|
|
|
|
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('@') == true && Email?.Contains('.') == true && Email?.EndsWith('.') == false;
|
|
} |