Question

My requirement is to authenticate users by email, but also allow a user to change his/her email later.

To authenticate users by email I'm using email as username as described here. However I can not figure out how to allow changing the user's email, as usernames are immutable.

Is there any way to allow mutable usernames?

Thanks

Was it helpful?

Solution

If you are using JDBC user store that is shipped with Carbon products. It is not possible to change the user name... Say you are creating a user with "foo@bar" and This name is saved as user name in the tables. And you can not change this name using a API or UI. But if your user store is a LDAP or any other custom user store, You have freedom to use the attribute for user name... And it can be changed user user profiles..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top