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

New regular account shows 'Add password' instead of 'Change password' #22

Closed
coni2k opened this issue May 22, 2015 · 1 comment
Closed
Labels

Comments

@coni2k
Copy link
Contributor

coni2k commented May 22, 2015

Also when debugging, regular account flow goes to UserManager - CreateAsync(User user) method, which should be used only for anonymous accounts. Find em' & destroy 'em.

@coni2k coni2k added the bug label May 22, 2015
@coni2k coni2k changed the title Creating a new entity issue New local account with password still shows 'Add password' instead of 'Change password' Mar 21, 2016
@coni2k
Copy link
Contributor Author

coni2k commented Mar 21, 2016

On server side, for anonymous accounts, UserManager CreateAsync(User user) and for regular local accounts (with password), CreateAsync(User user, string password) methods were overridden.

Apparently latter is using former internally, so even though user.HasPassword was set to null in 'regular account' flow, since it still goes to 'anonymous account' method, it sets HasPassword to false.

Now CreateAsync(User user) was renamed to CreateAnonymousAsync(User user).

@coni2k coni2k changed the title New local account with password still shows 'Add password' instead of 'Change password' New regular account shows 'Add password' instead of 'Change password' Mar 21, 2016
@coni2k coni2k closed this as completed in 50d0a66 Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant