Project

General

Profile

Revision 8226

Added by Jing Tao over 7 years ago

Add a tempalte for users to look up the forgotten username.

View differences:

lib/style/common/templates/ldapLookupName.tmpl
1

  
2
    <h3>Forgot Your UserName?</h3>
3
    
4
    <table class="intro" cellpadding="3" cellspacing="0">   
5
       <tr><td align="left">
6
       <span class="regtext">
7
       Please enter the E-mail address you provided when you registered. You will receive an E-mail with UserName (uid). Please check your incoming and junk E-mail folders for this E-mail.</td></tr>
8

  
9
       <!-- <tr><td align="left"><span class="label">Required fields are denoted by an asterisk (*).</td></tr>-->
10
       
11
    </table>
12
    <p>&nbsp;</p>
13
    
14
    <p class="label text-error">[% errorMessage %]<p>
15
    <p>
16
    <script type="text/javascript" language="JavaScript1.2">
17
    
18
    <!--
19
      document.loginForm.givenName.focus();
20
      document.loginForm.givenName.select();
21

  
22
      if(window.document.captureEvents != null)
23
      {
24
        window.document.captureEvents(Event.KEYPRESS);
25
        window.document.onKeyPress = doSubmit;
26
      }
27

  
28
      function doSubmit(event)
29
      {
30
        var key;
31
        if(document.all) // IE
32
          key = String.fromCharCode(window.events.keyCode);
33
        else
34
          key = String.fromCharCode(event.which);
35

  
36
        if(key == "\r" || key == "\n")
37
          document.loginForm.submit();
38
      }
39
    // -->
40
    </script>
41

  
42
    <form name="loginForm" action="[% cgiurl %]" method="post">
43
      <input type="hidden" name="stage" value="searchnamesbyemail"/>
44
      <input type="hidden" name="cfg" value="[% cfg %]"/>
45
      <table hspace="20" border="0">
46
        
47
         
48
        
49
        <tr>
50
          <td align="right" class="label">
51
            E-mail:
52
          </td>
53
          <td align="right">
54
            <input name="mail" type="[% fieldType %]" 
55
                   value="[% allParams.mail %]"/>
56
          </td>
57
        </tr>
58
        
59
        <tr>
60
          <td>
61
          </td>
62
          <td align="left">
63
               <input name="action" type="submit" value="Submit"/>
64
          </td>
65
        </tr>
66
      </table>
67
    </form>
68

  
0 69

  

Also available in: Unified diff