/// <summary>
 /// authenticate based on the email and password
 /// </summary>
 /// <param name="email">email address</param>
 /// <param name="password">password to authenticate</param>
 /// <param name="errors">error list</param>
 /// <returns>logon object</returns>
 public Logon Authenticate(string email, string password, ref List<string> errors)
 {
     IAuthorizeRepository authorize = new AuthorizeRepository();
     return new AuthorizeService(authorize).Authenticate(email, password, ref errors);
 }
Example #2
0
 public Logon Authenticate([FromBody]Logon loginInfo)
 {
     var errors = new List<string>();
     IAuthorizeRepository authorize = new AuthorizeRepository();
     return new AuthorizeService(authorize).Authenticate(loginInfo.UserName, loginInfo.Password, ref errors);
 }