Bamboo.Prevalence.Examples.UserLogin.UserLoginSystem.LogonUser C# (CSharp) 메소드

LogonUser() 개인적인 메소드

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