renamed "htname" to "zone"
added users to change their passwords (without admin access)
This commit is contained in:
parent
9266f5c789
commit
ef4f638797
5 changed files with 131 additions and 25 deletions
|
@ -10,7 +10,7 @@
|
|||
<body>
|
||||
<form name="show_htpasswd" action="manage" method="POST">
|
||||
<label for="name">Access zone:</label>
|
||||
<input type="text" size="30" name="htname" id="name" />
|
||||
<input type="text" size="30" name="zone" id="name" />
|
||||
<input type="submit" name="submit" value="Show" />
|
||||
</form>
|
||||
</body>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<head/>
|
||||
|
||||
<body>
|
||||
<h2>Manage user access for <i>${htname}</i></h2>
|
||||
<h2>Manage user access for <i>${zone}</i></h2>
|
||||
|
||||
<div py:if="error" class="error">${error}</div>
|
||||
<div py:if="success" class="success">${success}</div>
|
||||
|
||||
<h3>Add user</h3>
|
||||
<form name="add-passwd" action="" method="POST">
|
||||
|
@ -20,7 +21,7 @@
|
|||
<label for="password_add">Password:</label>
|
||||
<input type="password" size="20" name="password" id="password_add" />
|
||||
<input type="hidden" name="action" value="new" />
|
||||
<input type="hidden" name="htname" value="${htname}"/>
|
||||
<input type="hidden" name="zone" value="${zone}"/>
|
||||
<input type="submit" name="submit" value="Add user" />
|
||||
</form>
|
||||
|
||||
|
@ -37,7 +38,7 @@
|
|||
<label for="password_update">New password:</label>
|
||||
<input type="password" size="20" name="password" id="password_update" />
|
||||
<input type="hidden" name="action" value="update" />
|
||||
<input type="hidden" name="htname" value="${htname}"/>
|
||||
<input type="hidden" name="zone" value="${zone}"/>
|
||||
<input type="submit" name="submit" value="Change password" />
|
||||
</form>
|
||||
|
||||
|
@ -50,7 +51,7 @@
|
|||
<option py:for="username in usernames">${username}</option>
|
||||
</select>
|
||||
<input type="hidden" name="action" value="del" />
|
||||
<input type="hidden" name="htname" value="${htname}"/>
|
||||
<input type="hidden" name="zone" value="${zone}"/>
|
||||
<input type="submit" name="submit" value="Delete user" />
|
||||
</form>
|
||||
</py:if>
|
||||
|
|
39
htman/templates/password_change.html
Normal file
39
htman/templates/password_change.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
<html xml:lang="de" lang="de"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
xmlns:py="http://genshi.edgewall.org/">
|
||||
<xi:include href="layout.html" />
|
||||
|
||||
<head/>
|
||||
|
||||
<body>
|
||||
<h2>Change user password</h2>
|
||||
|
||||
<div py:if="error" class="error">${error}</div>
|
||||
<div py:if="success" class="success">${success}</div>
|
||||
|
||||
<form name="update-passwd" action="password" method="POST">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td><label for="zone">Zone:</label></td>
|
||||
<td><input type="text" size="20" name="zone" id="zone" /></td>
|
||||
</tr><tr>
|
||||
<td><label for="username">User name:</label></td>
|
||||
<td><input type="text" size="20" name="username" id="username" /></td>
|
||||
</tr><tr>
|
||||
<td><label for="old_password">Old password:</label></td>
|
||||
<td><input type="password" size="20" name="old_password" id="old_password" /></td>
|
||||
</tr><tr>
|
||||
<td><label for="new_password">New password:</label></td>
|
||||
<td><input type="password" size="20" name="new_password" id="new_password" /></td>
|
||||
</tr><tr>
|
||||
<td><label for="new_password2">New password (repeat):</label></td>
|
||||
<td><input type="password" size="20" name="new_password2" id="new_password2" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="submit" value="Change password" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue