Exemplo n.º 1
0
        async Task <SignInResult> ISignInService.ExternalLoginSignInAsync(string loginProvider, string providerKey, bool isPersistent, bool bypassTwoFactor)
        {
            var res = await base.ExternalLoginSignInAsync(loginProvider, providerKey, isPersistent, bypassTwoFactor);

            var returnRes = new SignInResult
            {
                Succeeded         = res.Succeeded,
                IsLockedOut       = res.IsLockedOut,
                IsNotAllowed      = res.IsNotAllowed,
                RequiresTwoFactor = res.RequiresTwoFactor
            };

            return(returnRes);
        }
Exemplo n.º 2
0
        async Task <SignInResult> ISignInService.TwoFactorAuthenticatorSignInAsync(string authenticatorCode, bool rememberMe, bool rememberMachine)
        {
            var res = await base.TwoFactorAuthenticatorSignInAsync(authenticatorCode, rememberMe, rememberMachine);

            var returnRes = new SignInResult
            {
                Succeeded         = res.Succeeded,
                IsLockedOut       = res.IsLockedOut,
                IsNotAllowed      = res.IsNotAllowed,
                RequiresTwoFactor = res.RequiresTwoFactor
            };

            return(returnRes);
        }
Exemplo n.º 3
0
        async Task <SignInResult> ISignInService.TwoFactorRecoveryCodeSignInAsync(string recoveryCode)
        {
            var res = await base.TwoFactorRecoveryCodeSignInAsync(recoveryCode);

            var returnRes = new SignInResult
            {
                Succeeded         = res.Succeeded,
                IsLockedOut       = res.IsLockedOut,
                IsNotAllowed      = res.IsNotAllowed,
                RequiresTwoFactor = res.RequiresTwoFactor
            };

            return(returnRes);
        }
Exemplo n.º 4
0
        async Task <SignInResult> ISignInService.PasswordSignInAsync(string username, string password, bool lockoutOnFailure)
        {
            var res = await base.PasswordSignInAsync(username, password, false, lockoutOnFailure);

            var returnRes = new SignInResult
            {
                Succeeded         = res.Succeeded,
                IsLockedOut       = res.IsLockedOut,
                IsNotAllowed      = res.IsNotAllowed,
                RequiresTwoFactor = res.RequiresTwoFactor
            };

            return(returnRes);
        }