Difference between revisions of "Random Usernames and Passwords"
From TMM Wiki
Jump to navigationJump to searchm |
TMMStephenY2 (talk | contribs) |
||
Line 44: | Line 44: | ||
You should add the ''$errors.username'' variable to the join page so NATS can | You should add the ''$errors.username'' variable to the join page so NATS can | ||
display username errors. | display username errors. | ||
+ | |||
+ | You can also now add a configuration variable in [[NATS4]] to generate usernames with a prefix. For example, you will now be able to generate random usernames with the prefix "a" and follow it with 15 random lowercase letters. | ||
== Examples == | == Examples == |
Revision as of 11:15, 23 June 2010
NATS 3
|
---|
You can give members random usernames and passwords when they sign-up by adding a hidden field to the NATS Pre-Join Form template. The field's name must be signup[random_userpass]. The fields value should contain three parameters separated by colons.
Parameters
(Required parameters in bold)
Name | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
Length | Number of characters in the username and password | Any whole number between 6 and 16 | None. You must specify a length | 16 |
Lowercase | Only use lowercase characters in the username and password | 0 or 1 (exclusive) | 0. Uses lowercase and uppercase characters | 1 |
Maximum Searches | How many times should NATS try to generate a unique random username before failing | Any whole number greater than zero | 10. Tries to generate a unique random username 10 times | 20 |
You should add the $errors.username variable to the join page so NATS can display username errors.
You can also now add a configuration variable in NATS4 to generate usernames with a prefix. For example, you will now be able to generate random usernames with the prefix "a" and follow it with 15 random lowercase letters.
Examples
- 10 character username and password, lowercase, a maximum of 5 searches: value="10:1:5"
- 8 character username and password, upper and lowercase, a maximum of 3 searches: value="8:0:3"
- 12 character username and password, upper and lowercase, a maximum of 10 searches: value="12"