public DTOAuthenticationResponse Login(DTOForLogin dTOForLogin)
        {
            DTOAuthenticationResponse dTOAuthenticationResponse = new DTOAuthenticationResponse();
            var data = _authRepo.Login(dTOForLogin.Username, dTOForLogin.Password);

            dTOAuthenticationResponse.Username = data.UserName;
            dTOAuthenticationResponse.Secret   = data.SecretToken;
            return(dTOAuthenticationResponse);
        }
示例#2
0
 public DTOLoginView(DTOAuthenticationResponse response) : base(response.Token)
 {
     Response = response;
 }