I have a need to dynamically creating users. I was able to add users to umbracoUsers table, but password is not hashed and salted. Is there a API service I can use to hash the password?
Umbraco handles of this for you, but it depends on the settings in your web.config.
If you look for the UmbracoMembershipProvider, you have to change the key 'legacyEncoding' to 'false' and after that everything will be fine.
One small issue is that all of your previously created Members can't use their password any longer (because suddenly another algorithm is changed). If that is necessary, you should definitely vote for this issue: http://issues.umbraco.org/issue/U4-8643.
How to Generate Hashed Password?
Hello,
I have a need to dynamically creating users. I was able to add users to umbracoUsers table, but password is not hashed and salted. Is there a API service I can use to hash the password?
Best, -Don
Hi Don,
Umbraco handles of this for you, but it depends on the settings in your web.config.
If you look for the UmbracoMembershipProvider, you have to change the key 'legacyEncoding' to 'false' and after that everything will be fine.
One small issue is that all of your previously created Members can't use their password any longer (because suddenly another algorithm is changed). If that is necessary, you should definitely vote for this issue: http://issues.umbraco.org/issue/U4-8643.
Hope this helps,
Jeffrey
Thank you Jeffrey. I would like to keep hashed password that is more secure.
I am looking for a way to generate hash and salted password grammatically.
Best, -Don
Hi Don,
the password will be hashed and salted if you set "LegacyEncoding" to "False". I would highly recommend to set it like that.
Regards, Jeffrey
One caveat to that advise though, if you are using Umbraco as a Service, don't set Legacy Encoding to False.
Thank you, well do that then.
Best, -Don
is working on a reply...