Difference between revisions of "NATS4 Password Retrieval"

From TMM Wiki
Jump to navigationJump to search
 
Line 30: Line 30:
 
HTTP GET to the following URL:
 
HTTP GET to the following URL:
  
*<nowiki>http://linkdomain/signup/password.php?siteid=~siteid~memberid=~memberid~</nowiki>
+
*<nowiki>http://linkdomain/signup/password.php?siteid=~siteid~&memberid=~memberid~</nowiki>
  
 
Make the following replacements:
 
Make the following replacements:

Revision as of 13:22, 20 November 2008

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 can send lost passwords to your members. The password retrieval script asks either a username and email address combination or the NATS member I.D. number, retrieves the user's email from the NATS database, and emails them their password. You can either post directly to this script or you can enable the password retrieval form template.

Automated Password Retrieval

Use either of the following methods to retrieve a member's password using your own script.

Retrieving Passwords by Username and Email

To retrieve the member's password using the member's username and email address, send a HTTP GET to the following URL:

  • http://linkdomain/signup/password.php?siteid=~siteid~&username=~username~&email=~email_address~

Make the following replacements:

  • 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~:

  • Replace ~siteids~ with a comma-separated list of siteid you wish to search on. NATS will use the first siteid found on this list to determine which member to send the reminder to.

Retrieving Passwords by Member I.D.

To retrieve the member's password using the member's member I.D., send a HTTP GET to the following URL:

  • http://linkdomain/signup/password.php?siteid=~siteid~&memberid=~memberid~

Make the following replacements:

  • linkdomain with your linkdomain
  • ~siteid~ with your site's I.D. number
  • ~memberid~ with the member's I.D. number

Retrieving Passwords through the Built-in Template

Surfers can submit their information to the password retrieval template included with NATS. NATS checks their submission and sends the lost password email if appropriate. Just send your members to the following URL:

  • http://linkdomain/signup/password.php

Replace linkdomain with your linkdomain.

Three templates found in your Sites Admin are associated with this feature:

  • member_password -- Members enter their username and email on this template, and NATS redisplays this page if there was an error on submission.
  • member_password_sent -- Members see this template after the reminder mail is sent.
  • mail_member_password -- This is the body of the reminder email.

See Also