Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix for LoggedOut view #318

Merged
merged 1 commit into from
Oct 20, 2019
Merged

Conversation

aiscrim
Copy link
Contributor

@aiscrim aiscrim commented Jul 17, 2019

When the users log out, the Logout button was still visible and an empty name was displayed, because we are still in the same request where _signInManager.SignOutAsync has been called and User.Identity.IsAuthenticated still returns true.

Now in the LoggedOut view the Logout button is replaced by the Login button.

Now in the logged out view the Logout button is replaced by the Login button.
@skoruba skoruba self-requested a review October 20, 2019 12:23
Copy link
Owner

@skoruba skoruba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

Comment on lines +70 to +73
else
{
<a class="menu-item my-2 btn btn-outline-primary" asp-action="Login" asp-controller="Account" asp-route-returnUrl="~/" asp-route-forceLoginScreen="true">@Localizer["Login"]</a>
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is missing localization for "Login" key. :-) Why do you use route "forceLoginScreen"? Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter forceLoginScreen belongs to the Windows support feature, I must have mixed things up, sorry.
Its use is to present the login screen even when the automatic Windows login is configured. I thought that users should have a way of choosing a different account than their Windows one (for example to access as administrator), and I think that clicking the login button of the Identity Server top menu is a good way of achieving it without compromising the automation of the other workflows.

@skoruba skoruba merged commit 84e02fe into skoruba:dev Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants