You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a database of users migrated from the legacy application, where they had user names and passwords but no e-mails. Data is now in the AspNetCore.Identity tables.
I created a new project using: dotnet new mudblazor --interactivity Auto --auth Individual --all-interactive
I made two changes in the project:
In program.cs the database is changed to Oracle.
In Login.razor InputModel class, I removed the e-mail verification attribute on the e-mail field.
When I run the application, the user can log in, but then strange things happen with the UI—on each interaction with the application, the user's status changes from authorized to not authorized.
A workaround/fix is to add a bogus e-mail to the user's entry in the database.
It looks like a null value in the UserInfo.Email creates problems.
The original MS Blazor template does not have this problem.
I have a workaround, but I'd like to know if checking e-mail for null can be made somewhere in the template.
The text was updated successfully, but these errors were encountered:
I'm not sure we can help you. Our templates are essentially a direct fork of the vanilla MS templates, with the Mud library and Mud components added. I'm not sure why it works for you in the original MS templates. I checked, and the auth state providers are the same, and I see there is a null check for the email. Perhaps I'm missing something.
Application is .Net 8, latest version.
I have a database of users migrated from the legacy application, where they had user names and passwords but no e-mails. Data is now in the
AspNetCore.Identity
tables.I created a new project using:
dotnet new mudblazor --interactivity Auto --auth Individual --all-interactive
I made two changes in the project:
program.cs
the database is changed to Oracle.Login.razor InputModel
class, I removed the e-mail verification attribute on the e-mail field.When I run the application, the user can log in, but then strange things happen with the UI—on each interaction with the application, the user's status changes from authorized to not authorized.
A workaround/fix is to add a bogus e-mail to the user's entry in the database.
It looks like a null value in the
UserInfo.Email
creates problems.The original MS Blazor template does not have this problem.
I have a workaround, but I'd like to know if checking e-mail for null can be made somewhere in the template.
The text was updated successfully, but these errors were encountered: