close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Send random password to approved user

Thread began 1/29/2012 3:17 am by steelace396915 | Last modified 1/29/2012 9:54 am by steelace396915 | 3779 views | 3 replies

steelace396915

Ian, thanks for replying! I have been thinking about a solution like that but Im not sure how to do it with my VERY limited knowledge in PHP. Is there a way using accomplishing this only using the WA server behaviours or do one have to handcode this function?!

When a new user signs up there is no password inserted into the db as choosed by me when creating the signup page. I have 4 accesslevels on my site. 1= Visitors, 2= Applicants (People who sign up but are not yet approved), 3 = Approved users & 4= Administrators. When a new user signs up he/she is asigned value 2= applicant in db. Ive then set up rule on login page to only allow accesslevel only 3-4 users to be able to login.

What I have now is a admin/userupdate page where I can change the accesslevel value for a previously signed up user who is not yet able to login. At the time I change the accesslevel for that user to approved I wonder if one could implement the random password behaviour to autogenerate a password that is sent to the approved user and at the same time insert this password in db for that user.

On the userupdate page I have now it works inserting a password for a user in the initial empty password field manually and its inserted correctly in db but what I really want is to have it automated when I change the accesslevel for the user and press submit.

I do understand what you say about having a hidden password field inserting a static password on the signup page but that should not matter if the password field is blank or filled with some initial value when entering the userupdate page?

Im not smart enough yet to figure out how to do this correctly on my own so I hope for some more input!?

I did find another thread that deals with similar problem but Im not positive how I can implement this for my needs!? showthread.php?t=21907

/Martin J.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...