Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
	public void LoginFailed (LoginError error, string errorMessage)
	{
		Debug.Log ("LoginFailed: error = " + error.ToString() + ", errorMessage = " + errorMessage);
		m_IsLoggedIn = false;
	}
Ejemplo n.º 3
0
 public void LoginFailed(LoginError error, string errorMessage)
 {
     Debug.Log("LoginFailed: error = " + error.ToString() + ", errorMessage = " + errorMessage);
     m_IsLoggedIn = false;
 }