Ignore:
Timestamp:
04/28/17 10:54:50 (7 years ago)
Author:
nanardon
Message:

Improve loadpasswd feature

Location:
trunk/LATMOS-Accounts-Web/root/html
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/root/html/includes/sidebar.tt

    r1993 r2006  
    9191</li> 
    9292 
     93<li>[% l('Tools') %] 
     94    <ul> 
     95    [% IF c.model('Accounts').db.check_acl('user', 'userPasswd', 'w') %] 
     96    <li><a href="[% c.uri_for('/tools', 'loadpasswd') %]"> 
     97        [% l('Load Password') %] 
     98    </a></li> 
     99    [% END %] 
     100    </ul> 
     101</li> 
     102 
    93103<li><a href="[% c.uri_for('/about') %]"> 
    94104    [% l('About') %]</a></li> 
  • trunk/LATMOS-Accounts-Web/root/html/tools/loadpasswd/index.tt

    r2003 r2006  
    11<form action="[% c.uri_for('/tools', 'loadpasswd') %]" method="post" 
    22    enctype="multipart/form-data"> 
     3 
     4<p>[% l('The file format must similar to UNIX standard password, only the two 
     5first column are used.') %]</p> 
     6 
     7<pre> 
     8username1:password1:.... 
     9username2:password2:.... 
     10</pre> 
    311 
    412<p>[% l('When password are encrypted they are injected only in 
     
    816<input type=checkbox name=crypt> 
    917<br> 
     18<label for=crypt>[% l('Dont check for weak passord') | html %]</label> 
     19<input type=checkbox name=force> 
     20<br> 
    1021<label for=file>[% l('You can load a existing file...') | html %]</label> 
    1122<br> 
     
    1425<input type="submit"> 
    1526</form> 
     27 
     28[% FOREACH res = Pass %] 
     29[% IF loop.first %] 
     30<p>[% l('Results:') %]</p> 
     31<table border=1> 
     32<tr> 
     33<td>[% l('Username') | html %]</td> 
     34<td>[% l('Results') | html %]</td> 
     35</tr> 
     36[% END %] 
     37<tr> 
     38<td>[% res.u | html %]</td> 
     39<td>[% res.r | html %]</td> 
     40</tr> 
     41[% IF loop.last %] 
     42</table> 
     43[% END %] 
     44[% END %] 
Note: See TracChangeset for help on using the changeset viewer.