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

Private Web Site - Logon issue #6

Open
SKApretto71 opened this issue Feb 8, 2017 · 2 comments
Open

Private Web Site - Logon issue #6

SKApretto71 opened this issue Feb 8, 2017 · 2 comments

Comments

@SKApretto71
Copy link

SKApretto71 commented Feb 8, 2017

I'm able to build and run the Private Web Site.
Next step would be to create a new user, which I succeed (and I see the new entry being added on the DB tables) but when I attept to logon I get a null value error while creating the Claim.

Something like:

[ArgumentNullException: Value cannot be null.
Parameter name: value]
System.Security.Claims.Claim..ctor(String type, String value, String valueType, String issuer, String originalIssuer, ClaimsIdentity subject, String propertyKey, String propertyValue)
System.Security.Claims.Claim..ctor(String type, String value)
Microsoft.AspNet.Identity.d__0.MoveNext()

This occurs only when providing the right password, with a wrong one it just tell me I'm wrong - which is correct behaviour.

Any hint?

@Jaafar-abusair
Copy link

Well, probably you have the UserName column null at the database for the user that you used, so basically copy the data in email column to UserName column if you want to use the emil as user name.

@alimahdiiian
Copy link

When there is both username and email in user class,as Jaafar said ,the column UserName and Email shouldn't be null.
My be can define a default value for one of them and get another in register form .

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

No branches or pull requests

3 participants