public bool New(string userid, string password) { if (this.Load(userid)) { return(false); } if (this.InitNew()) { this.UserID = userid; this.Password = SecureToken.Encrypt(password); return(true); } return(false); }
public bool LogIn(string password) { Authenticated = SecureToken.Encrypt(password) == Password; return(Authenticated); }