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); }
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); }