Creating a User Account
This one is almost a complete 'no-brainer'!!
After you create the page ('createuser.aspx'), you could bring this page up in VWD, drag in the 'CreateUserWizard'
from the tool box, and it would work just fine!
Granted, it wouldn't look very pretty, it would still work fine. - But for our site, we've 'prettied' it up a little
to add some formatting to have it the same style as our 'Login Box':

After you get your .zip package, you can open the file and see what we've done.
Please note the lines I've underlined in the 'web.config' file:

In the above, most of these items should be fairly obvious.
The 'password' must be a minimum of 6 characters long and it
needs no 'alpha/numeric' characters (i.e. punction marks).
The 'password strength regular expression' is set to "". - This can be used to enforce stronger passwords (if you know
what you're doing). - We don't bother with it.
We are requiring a 'Securiity question and answer' for new users who sign up. - This will be used later if the user needs
to retrieve a lost password.
The E-mail address must be 'unique'. - No two users in the database can have the same E-mail address.
Although not show in web.config, the 'username' must also be 'unique'. - If a user tries to sign up using the same
'username' and/or 'E-mail' address already in the database, he/she will be asked to select a different one.
If a user successfully passes the 'create user' requirements, his/her info will be added to the data base and they will
be automatically logged in.
Let's move on to retreiving a lost password.
|