private async Task AddLoginAttemptAsync(LoginError loginError, int userId, ConnectionInfo connectionInfo) { var loginAttempt = new LoginAttempt { FromIp = connectionInfo.IpAddress.ToString(), Date = DateTimeOffset.Now, Success = loginError == LoginError.None, Reason = loginError.ToString(), UserId = userId, Browser = connectionInfo.BrowserInfo.BrowserFamily, Device = connectionInfo.BrowserInfo.DeviceFamily, Os = connectionInfo.BrowserInfo.OsFamily }; await _loginAttemptsRepositoryService.AddLoginAttemptsAsync(loginAttempt); }
public void LoginFailed (LoginError error, string errorMessage) { Debug.Log ("LoginFailed: error = " + error.ToString() + ", errorMessage = " + errorMessage); m_IsLoggedIn = false; }
public void LoginFailed(LoginError error, string errorMessage) { Debug.Log("LoginFailed: error = " + error.ToString() + ", errorMessage = " + errorMessage); m_IsLoggedIn = false; }