diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-11-12 21:13:47 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-11-12 21:13:47 +0100 |
commit | f1bcac65a68e67bff8322e238d9e5e39d3227e5f (patch) | |
tree | de8526b8fb54a425873c125f803e528a19128025 /templates | |
parent | 5635baa81890804d5b6d2d01eda085449466d1a9 (diff) |
Added a change password option when logged in.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/__init__.py | 1 | ||||
-rw-r--r-- | templates/base.tmpl | 2 | ||||
-rw-r--r-- | templates/changepass.tmpl | 16 |
3 files changed, 18 insertions, 1 deletions
diff --git a/templates/__init__.py b/templates/__init__.py index 3f11c65..5c9f28e 100644 --- a/templates/__init__.py +++ b/templates/__init__.py @@ -5,3 +5,4 @@ from login import login from my import my from images import images from register import register +from changepass import changepass diff --git a/templates/base.tmpl b/templates/base.tmpl index 6c1cb4f..d9d9ab1 100644 --- a/templates/base.tmpl +++ b/templates/base.tmpl @@ -29,7 +29,7 @@ </div> <p class="login">#slurp #if $user -Logged in as $user.username.#slurp +Logged in as $user.username. <a href="${root}c">Change password</a>#slurp #else Not logged in.#slurp #end if diff --git a/templates/changepass.tmpl b/templates/changepass.tmpl new file mode 100644 index 0000000..4171f36 --- /dev/null +++ b/templates/changepass.tmpl @@ -0,0 +1,16 @@ +#def title: changepass +#def header: changepass +#extends templates.base +#def content +#set error = $error or '' + <div class="error">$error</div> + <form method="post" action="${root}c"> + <p>current password</p> + <p><input type="password" id="oldpass" name="oldpass" /></p> + <p>new password</p> + <p><input type="password" id="password" name="password" /></p> + <p>repeat new password</p> + <p><input type="password" id="password2" name="password2" /></p> + <p><input type="submit" value="Login" /></p> + </form> +#end def |