示例#1
0
        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);
        }
示例#2
0
 public bool LogIn(string password)
 {
     Authenticated = SecureToken.Encrypt(password) == Password;
     return(Authenticated);
 }