Bamboo.Prevalence.Examples.UserLogin.UserLoginSystem.LogonUser C# (CSharp) Method

LogonUser() private method

private LogonUser ( string email, string password ) : User
email string
password string
return User
		public User LogonUser(string email, string password)
		{		
			User user = GetUser(email);
			if (!user.CheckPassword(password))
			{
				throw new ApplicationException("Invalid password!");
			}
			return user;
		}