Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async Task<bool> LoginUserAsync(string name, string password){
- var loginRequest = new LoginRequest
- {
- Username = userName,
- Password = password,
- Domain = await _superFastStorage.GetDomainNameAsync()
- };
- using (var loginUserResponse = await _networkClient.PerformPostAsync(
- url: UrlUtils.LOGIN_API,
- content: loginRequest,
- shouldCheckAuthorization: false))
- {
- loginUserResponse.EnsureSuccessStatusCode();
- var result = loginUserResponse.IsSuccessStatusCode;
- return result;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement