예제 #1
0
        public ILoggedinUser Login(string username, string password)
        {
            var newpw = Hash(password);

            var user = new MyLoggedinUser();

            user.User = mUsers.Find(u => u.UserName == username);
            return(user);
        }
예제 #2
0
        public ILoggedinUser Login(string username, string password)
        {
            var newpw = Hash(password);

            var loggedinuser = new MyLoggedinUser();

            loggedinuser.User = mXmlUsers.Find(u => u.UserName == username && u.Password == newpw);

            return(loggedinuser);
        }