Esempio n. 1
0
 public bool CheckLogin(LoginRequest request)
 {
     //            var result = _userRepository.AuthenticUser(request.UserName, request.PassWord) != null;
     //            if (result)
     //            {
     //                HttpContext.Current.Session["UserName"] = request.PassWord;
     //            }
     //            return result;
     return true;
 }
Esempio n. 2
0
 public ADLoginResponse ADLogin(LoginRequest request)
 {
     return new ADLoginResponse
     {
         UserKey = "AAAABBBB",
         User = new ADUser
         {
             Anvandarnamn = request.UserName,
             MedlemsorganisationID = Guid.NewGuid(),
             MedlemsorganisationNamn = "Moto",
             MoGrupp = "Mo",
             MoGruppID = Guid.NewGuid(),
             SystemUserID = Guid.NewGuid()
         }
     };
 }