Difference between revisions of "Member Usernames & Passwords"

From TMM Wiki
Jump to navigationJump to search
m
 
Line 6: Line 6:
 
}}
 
}}
  
By default, NATS stores [[Common Terms#Member|member's]] unencrypted and encrypted passwords. Setting the following configuration variable in ''nats/includes/config.php'' makes NATS only store the encrypted password.
+
[[NATS]] stores [[Ct#Member|members']] unencrypted and encrypted passwords by default. However, it also offers a feature that makes [[NATS]] only store a member's encrypted password for additional security. You can do this by setting the following configuration variable in ''nats/includes/config.php'':
  
 
<pre>
 
<pre>
Line 12: Line 12:
 
</pre>
 
</pre>
  
* 0 - store the members unencrypted password (default)
+
* 0 - Stores the member's unencrypted password (default)
* 1 - Don't store the members unencrypted password
+
* 1 - Does not store the member's unencrypted password
  
 
== Limiting Username & Password Length ==
 
== Limiting Username & Password Length ==
Find the following code on the [[ct#Pre-Join Form|pre-join form]] template:
+
To limit a member's username and password length, find the following code on the [[Ct#Pre-Join Form|pre-join form]] template:
  
 
<pre>
 
<pre>
Line 23: Line 23:
 
</pre>
 
</pre>
  
Notice this part: <i><nowiki>[username:1:6:16:::username_check]</nowiki></i> -- the fields
+
An important section to note is the following: ''<nowiki>[username:1:6:16:::username_check]</nowiki>''
between colons are: $name, $required, $min, $max, $compare,
+
 
$ses_compare, $special, and $convert. Change the $max field to the
+
The fields between the colons above are: $name, $required, $min, $max, $compare, $ses_compare, $special, and $convert. Simply change the $max field to the maximum number of characters you would like to be accepted as a username or password.
maximum number of characters to be accepted as a username or password.
 
  
 
== Reusing Old Usernames ==
 
== Reusing Old Usernames ==
Reuse old usernames by adding the following variable to your join form.
+
[[NATS]] also allows you to reuse old usernames by adding the following variable to your join form template:
  
 
<pre>
 
<pre>

Revision as of 16:56, 3 August 2010

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
Skins and Templates Admin
The Skins and Templates Admin
Skins
Templates
Site Templates
Language Skins
Language Files
custom_errors.php
Join Page Variables
Skipping NATS Join Form
Post URL Variables
Member Usernames & Passwords
Form Validation
Username Recommendations
Password Retrieval
Post-Biller Templates
Geo-Target Join Options
Random Usernames and Passwords
Smarty
Smarty print array
Smarty Plugins
Available Smarty Functions
Affiliate Support Template
Adding a Verification Image
Custom Program and Campaign Selection Pages
Output An Affiliate's Last Paid Date
Affiliate Signup Email
Affiliate Join Page Linkcodes
Approval/Upgrade/Denial Variables
Approval/Upgrade/Denial Template Variables
CSS Theme Builder
NATS 3
Skins & Templates Admin
Smarty Plugins
Skins
Editing Skins
Creating Skins
Switching Skins
Templates
nats_code
Affiliate Stats Template
Affiliate Support Template
Affiliate Login Template
custom errors.php
Template Array Variable
Detailed Stats
NATS Variables
Dialer Statistics
Affiliate Signup
Post URL Variables
Member Usernames & Passwords
Output An Affiliate's Last Paid Date
Custom Program and Campaign Selection Pages
CAPTCHA Removal
Username Recommendations
Password Retrieval
Post-Biller Templates
Geo-Target Join Options
Template Caching
Random Usernames and Passwords
Base Templates
Protecting Template Data
Mail Reseller Signup Template Variable Names
Smarty
Smarty print array
News Section Templating
Affiliate Signup Email
Getting The NATSCode
Checking for Usernames on All Sites
Adding Stats to Affiliate Pages
Affiliate Join Page Linkcodes

NATS stores members' unencrypted and encrypted passwords by default. However, it also offers a feature that makes NATS only store a member's encrypted password for additional security. You can do this by setting the following configuration variable in nats/includes/config.php:

$config['MEMBERS_NO_UNENCRYPTED'] = 1;
  • 0 - Stores the member's unencrypted password (default)
  • 1 - Does not store the member's unencrypted password

Limiting Username & Password Length

To limit a member's username and password length, find the following code on the pre-join form template:

<TD class="join_name">Username:</TD><TD class="join_value"><input class="join_input" type="text"
name="signup[username:1:6:16:::username_check]" value="{$vars.username}">...

An important section to note is the following: [username:1:6:16:::username_check]

The fields between the colons above are: $name, $required, $min, $max, $compare, $ses_compare, $special, and $convert. Simply change the $max field to the maximum number of characters you would like to be accepted as a username or password.

Reusing Old Usernames

NATS also allows you to reuse old usernames by adding the following variable to your join form template:

<input type="hidden" name="signup[rename_old_member]" value="1">