Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
|
9b74fcabee | ||
|
7fafc8f150 | ||
|
a27349e736 |
5 changed files with 16 additions and 16 deletions
8
index.py
8
index.py
|
@ -79,13 +79,13 @@ def main():
|
|||
else:
|
||||
main_content = read_template_file('fail.tpl', message=cgi.escape(p.stdout.read()))
|
||||
else:
|
||||
main_content = read_template_file('fail.tpl', message='User not found or wrong password entered.')
|
||||
main_content = read_template_file('fail.tpl', message='Benutzer nicht gefunden oder Passwort falsch.')
|
||||
else:
|
||||
main_content = read_template_file('fail.tpl', message='Passwords do not match.')
|
||||
main_content = read_template_file('fail.tpl', message='Passwörter stimmen nicht überein.')
|
||||
elif form_ok == False:
|
||||
main_content = read_template_file('fail.tpl', message='All fields are required.')
|
||||
main_content = read_template_file('fail.tpl', message='Alle Felder müssen ausgefüllt werden.')
|
||||
else:
|
||||
main_content = read_template_file('fail.tpl', message='Invalid data type supplied.')
|
||||
main_content = read_template_file('fail.tpl', message='Ungültiger Datentyp.')
|
||||
else:
|
||||
# Submit button not pressed, show form
|
||||
formaction = cgi.escape("https://" + os.environ["HTTP_HOST"] + os.environ["REQUEST_URI"])
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="error">
|
||||
<h2>Oops, something went wrong…</h2>
|
||||
<p>Message: <span class="message">{$message}</span></p>
|
||||
<a href="" class="back">Try again</a>
|
||||
<h2>Euje, da ist etwas schief gelaufen…</h2>
|
||||
<p><span class="message">{$message}</span></p>
|
||||
<a href="" class="back">Nochmal probieren</a>
|
||||
</div>
|
||||
|
|
12
tpl/form.tpl
12
tpl/form.tpl
|
@ -1,13 +1,13 @@
|
|||
<form action="{$formaction}" method="post">
|
||||
<div id="PasswordForm">
|
||||
<p><label for="accountname">Mail Account Name:</label>
|
||||
<input type="text" name="accountname" id="accountname" placeholder="Your account name, including internal prefix" required></p>
|
||||
<p><label for="oldpass">Old Mail Password:</label>
|
||||
<p><label for="accountname">E-Mail-Adresse:</label>
|
||||
<input type="text" name="accountname" id="accountname" required></p>
|
||||
<p><label for="oldpass">Altes Passwort:</label>
|
||||
<input type="password" name="oldpass" id="oldpass" required></p>
|
||||
<p><label for="newpass">New Mail Password:</label>
|
||||
<p><label for="newpass">Neues Passwort:</label>
|
||||
<input type="password" name="newpass" id="newpass" required></p>
|
||||
<p><label for="newpass2">Repeat New Mail Password:</label>
|
||||
<p><label for="newpass2">Neues Passwort nochmals:</label>
|
||||
<input type="password" name="newpass2" id="newpass2" required></p>
|
||||
<p><input type="submit" name="submit" value="Change Password"></p>
|
||||
<p><input type="submit" name="submit" value="Passwort ändern"></p>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Change Mailbox Password</title>
|
||||
<title>Mailbox Passwort</title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
html {
|
||||
|
@ -75,7 +75,7 @@
|
|||
</style>
|
||||
<body>
|
||||
<div id="Main">
|
||||
<h1>Change Mailbox Password</h1>
|
||||
<h1>Mailbox Passwort ändern</h1>
|
||||
{$main_content}
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -1 +1 @@
|
|||
<p class="success">Your password was changed successfully.</p>
|
||||
<p class="success">Passwort erfolgreich geändert.</p>
|
||||
|
|
Loading…
Reference in a new issue