Changes

Login Page

1,534 bytes added, 18:43, 25 June 2019
no edit summary
===Forgot Password=== 
: '''HTML: '''Forgot your password? Please click hereclick <a href="javascript:passwdwin()">here</a>. 
: '''JavaScript: '''
<pre>function passwdwin(){
}</pre>
The system-generated email sent to the user after selecting the '''Forgot Password '''option can be configured from [[Email#Email Templates for User Activation and Password|Email Templates for User Activation and Password]]. 
 
===Branch-Specific Forgot Password===
This functionality can be used when a user exists in the system multiple times with the same email address, but against different branches (organizations). The configuration means that only the password for the user account ''under a specific branch ''will be updated.
 
: '''HTML: '''Forgot your password? Please click <a class="Login" href="javascript:passwdwin(12345)">here</a>. 
 
* Where ''12345 ''is the [[Companyid]]. 
 
: '''JavaScript: '''
 
<pre> function passwdwin(branch) { 
 
window.open('/s_requestpassword.jsp?branchid='+branch,'pwdin','left=200,top=200,toolbar=0,width=300,height=214,directories=no,
 
status=no,scrollbars=no,resizable=no,menubar=no,alwaysRaised=yes');
 
} </pre>
 
A login page can be configured with multiple '''Forgot Password '''links, each including a different companyid as the parameter. Alternatively, you can create multiple login pages with a single link/companyid included on each page. 
 
When the user clicks on the '''Forgot Password '''link, enters their password, and submits it, then the underlying code will search for the entered email address in the company and all of its sub-organizations. It will then email the password for that branch-specific user account.
 
* The email sent can then be configured with [[Sslogic]] to tailor the content of the email to the specific branch.
* The error message displayed on this page when an invalid email is entered can be altered using the [[Language Library]].
 
=See Also=
:::::* [[Adding the SmartSimple Login to your Website]]
[[Category:System Management]][[Category:Glossary]][[Category:Login Pages]]
2,299
edits