How to allow Members to retrieve or reset their Password
Article Topics: Members
NATS has several ways of retrieving Member passwords in the case that they have been forgotten or lost.
The password retrieval script you will be using will ask for their email address, as well as a NATS member I.D. number. It will then retrieve the user's email from the NATS database and email them their lost password.
If a member forgot their password, you can either enable the password retrieval from a form template or post directly to the forgotten password script.
Retrieving Passwords through the Built-in Template
If you do not want to use automated password retrieval scripts,
If Members have forgotten or lost their password, you can have them submit their information to the password retrieval template in NATS. NATS will then check the information in their submission, and send the member a lost password email if the credentials are correct.
To direct your members to this form, send them the following URL:
"http://linkdomain/signup/password.php?siteid=~siteid~ "
Where you can replace the linkdomain with your actual NATS linkdomain and the siteid with your siteid.
Three Templates Associated with Member Passwords
There are three Tour Templates that are associated with the retrieval of passwords for members, each of which does different things:
member_password - Prompts Members to enter their username and password
member_password_sent - Displays a reminder that an email was sent to retrieve their password
mail_member_password - The Body of the email that is sent
Retrieving Passwords through Automated Password Retrieval
Retrieving Passwords by Username and Email
If you would like to retrieve the member's password by using their username and email address, you can send an HTTP GET to the following URL:
https://linkdomain/signup/password.php?siteid=~siteid~&username=~username~&email=~email_address~&submit=1Make the following replacements in the above URL to set the variables:
Replace linkdomain with your linkdomain
Replace ~siteid~ with your site's I.D. number.
Replace ~username~ with the member's username.
Replace ~email_address~ with the member's email address.
Optional: Instead of siteid=~siteid~, you can use siteids=~siteids~:
If you use this, replace ~siteids~ with a comma-separated list of siteids you wish to search. NATS will use the first siteid found on this list in order to determine which member it sends the reminder email to.
Retrieving Passwords by Member I.D.
An alternative to retrieving passwords by username and email is through their Member I.D.
You would need to send an HTTP GET to the following URL:
https://linkdomain/signup/password.php?siteid=~siteid~&memberid=~memberid~&submit=1Make the following replacements in the above URL to set the variables:
Replace linkdomain with your linkdomain
Replace ~siteid~ with your site's I.D. number
Replace ~memberid~ with the member's I.D. number
Retrieving Password and Username by Email
In the rare case where a Member has forgotten both their username and password, their information can be retrieved using only their email address.
If you want to retrieve the member's username and password by using their email, you will need to turn off the configuration "RETRIEVAL_REQUIRE_USERNAME". This configuration can be found under the following section:
"Misc" section of the Configuration admin.
Once this is turned off, you can send an HTTP GET to the following URL:
https://linkdomain/signup/password.php?siteid=~siteid~&email=~email_address~&submit=1Make the following replacements in the above
Replace linkdomain with your linkdomain
Replace ~siteid~ with your site's I.D. number
Replace ~email_address~ with the member's email address
Updating Member Password
If you would like to allow the member to update their password to a new password, you can automate by sending a HTTP GET to the following URL:
https://linkdomain/signup/password.php?&update=1&siteid=~siteid~&username=~username~&email=~email_address~&old_password=~old_password~&new_password=~new_password~&submit=1To update their password to a new password the following needs to be enabled:
The config "MEMBER_PASSWORD_UPDATE" needs to be enabled
The parameter update=1 is passed into /signup/password.php script
By default, member must have their current password, username, email in order to update password
Related Articles
List of Default TemplatesLast updated
Was this helpful?