From b368c61d34144d836501ecad66aad6fd79ef84ec Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Wed, 29 Apr 2020 14:22:53 +0800 Subject: [PATCH 1/2] Remove UnitOfWorkAttribute in the IdentityServerSupportedLoginModel --- .../Account/IdentityServerSupportedLoginModel.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/IdentityServerSupportedLoginModel.cs b/modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/IdentityServerSupportedLoginModel.cs index e194c1544d..60f55497da 100644 --- a/modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/IdentityServerSupportedLoginModel.cs +++ b/modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/IdentityServerSupportedLoginModel.cs @@ -29,12 +29,12 @@ namespace Volo.Abp.Account.Web.Pages.Account public IdentityServerSupportedLoginModel( IAuthenticationSchemeProvider schemeProvider, - IOptions accountOptions, - IIdentityServerInteractionService interaction, - IClientStore clientStore, + IOptions accountOptions, + IIdentityServerInteractionService interaction, + IClientStore clientStore, IEventService identityServerEvents) :base( - schemeProvider, + schemeProvider, accountOptions) { Interaction = interaction; @@ -95,7 +95,6 @@ namespace Volo.Abp.Account.Web.Pages.Account return Page(); } - [UnitOfWork] //TODO: Will be removed when we implement action filter public override async Task OnPostAsync(string action) { if (action == "Cancel") @@ -116,7 +115,7 @@ namespace Volo.Abp.Account.Web.Pages.Account ValidateModel(); ExternalProviders = await GetExternalProviders(); - + EnableLocalLogin = await SettingProvider.IsTrueAsync(AccountSettingNames.EnableLocalLogin); await ReplaceEmailToUsernameOfInputIfNeeds(); @@ -166,7 +165,6 @@ namespace Volo.Abp.Account.Web.Pages.Account return RedirectSafely(ReturnUrl, ReturnUrlHash); } - [UnitOfWork] public override async Task OnPostExternalLogin(string provider) { if (AccountOptions.WindowsAuthenticationSchemeName == provider) From f8f595dfc7dd246478385fd633172ebb9438ede3 Mon Sep 17 00:00:00 2001 From: Alper Ebicoglu Date: Wed, 29 Apr 2020 12:14:43 +0300 Subject: [PATCH 2/2] add ABP login with password --- docs/en/CLI.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/en/CLI.md b/docs/en/CLI.md index b687a5244a..178482f991 100644 --- a/docs/en/CLI.md +++ b/docs/en/CLI.md @@ -170,7 +170,11 @@ Some features of the CLI requires to be logged in to abp.io platform. To login w abp login ``` -Notice that, a new login with an already active session, will kill the previous session and creates a new one. +```bash +abp login -p +``` + +Notice that, a new login with an already active session, overwrites the previous session. ### logout