Forum
Forum
DevBlog
Forum management
Threads started by me
Threads I participate in
Get started
Dynamicweb 9
Dynamicweb 10
Swift
Templating
Community
Downloads
Login
Service Desk
Order
Sections
Get started
Dynamicweb 9
Dynamicweb 10
Swift
Templating
Community
Downloads
Forum
DevBlog
Forum management
Threads started by me
Threads I participate in
Developer forum
×
E-mail notifications
E-mail
I'd like to be informed of the updates
Don't bother me with any emails
Forum
»
Development
»
Set password
Set password
E-mail notifications
Per Ljung
Reply
Posted on 01/11/2011 09:33:26
Hi!
When creating an extranet user using the api, is there a way to generate a password or do you have to set the password manually?
Has Dynamicweb a built-in routine for generating passwords?
Best regards,
Per
Replies
Morten Bengtson
Posted on 01/11/2011 10:10:15
Reply
This post has been marked as an answer
You can generate a password like this...
user.Password = Dynamicweb.Base.PasswordGenerate("8");
This will generate a random string of 8 characters.
The parameter should be a numeric string value. If you pass string.Empty, it will default to 8.
Votes for this answer: 0
You must be logged in to post in the forum
Login
Username
Password
Forgot your password?