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

user name not displayed after login #3

Closed
nstohler opened this issue Jun 20, 2019 · 2 comments
Closed

user name not displayed after login #3

nstohler opened this issue Jun 20, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@nstohler
Copy link

Problem

When I logged in, the index page only displayed "Hello !!!" (missing username). When I refreshed the page, I got the correct result: "Hello tester !!!"

How to fix it

in AuthorizeApi.cs:

public async Task<UserInfo> Login(LoginParameters loginParameters)
{
    var result = await _httpClient.PostJsonAsync<UserInfo>("api/Authorize/Login", loginParameters);
    return result;
}
@enkodellc
Copy link
Owner

@nstohler Thanks for the contribution, looks good. Do you have an example on how to catch BadRequests / error handling? I could not find one.

@enkodellc enkodellc added the bug Something isn't working label Jun 20, 2019
enkodellc added a commit that referenced this issue Jun 20, 2019
Update theme, Secure Pages, Anonymous Home Page
@nstohler
Copy link
Author

@enkodellc I will look into the error handling during the next few days and get back to you if I find anything useful.

DanielBunting added a commit that referenced this issue Mar 7, 2020
GioviQ added a commit that referenced this issue May 6, 2021
Update dual_mode_blazor.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants