From ad94850e0916346af8cdb72c77f4ef7889d6ee95 Mon Sep 17 00:00:00 2001
From: Sam
Date: Wed, 16 Oct 2013 17:49:38 -0500
Subject: security code cleanup
---
.../new_security/forgot_password_step2.html | 11 +---
.../wqflask/templates/new_security/registered.html | 13 +---
.../wqflask/templates/new_security/thank_you.html | 18 ++----
.../wqflask/templates/new_security/verified.html | 32 ---------
wqflask/wqflask/templates/security/_macros.html | 39 -----------
wqflask/wqflask/templates/security/_menu.html | 15 -----
wqflask/wqflask/templates/security/_messages.html | 9 ---
wqflask/wqflask/templates/security/_scripts.html | 3 -
.../templates/security/change_password.html | 11 ----
.../templates/security/email/change_notice.html | 4 --
.../templates/security/email/change_notice.txt | 5 --
.../security/email/confirmation_instructions.html | 5 --
.../security/email/confirmation_instructions.txt | 5 --
.../security/email/login_instructions.html | 5 --
.../security/email/login_instructions.txt | 5 --
.../security/email/reset_instructions.html | 1 -
.../security/email/reset_instructions.txt | 3 -
.../templates/security/email/reset_notice.html | 1 -
.../templates/security/email/reset_notice.txt | 1 -
.../wqflask/templates/security/email/welcome.html | 9 ---
.../wqflask/templates/security/email/welcome.txt | 9 ---
.../templates/security/forgot_password.html | 9 ---
wqflask/wqflask/templates/security/login_user.html | 72 ---------------------
.../wqflask/templates/security/register_user.html | 75 ----------------------
.../wqflask/templates/security/reset_password.html | 15 -----
.../templates/security/send_confirmation.html | 34 ----------
wqflask/wqflask/templates/security/send_login.html | 9 ---
wqflask/wqflask/templates/security/thank_you.html | 8 ---
wqflask/wqflask/user_manager.py | 37 ++++-------
29 files changed, 23 insertions(+), 440 deletions(-)
delete mode 100644 wqflask/wqflask/templates/new_security/verified.html
delete mode 100644 wqflask/wqflask/templates/security/_macros.html
delete mode 100644 wqflask/wqflask/templates/security/_menu.html
delete mode 100644 wqflask/wqflask/templates/security/_messages.html
delete mode 100644 wqflask/wqflask/templates/security/_scripts.html
delete mode 100644 wqflask/wqflask/templates/security/change_password.html
delete mode 100644 wqflask/wqflask/templates/security/email/change_notice.html
delete mode 100644 wqflask/wqflask/templates/security/email/change_notice.txt
delete mode 100644 wqflask/wqflask/templates/security/email/confirmation_instructions.html
delete mode 100644 wqflask/wqflask/templates/security/email/confirmation_instructions.txt
delete mode 100644 wqflask/wqflask/templates/security/email/login_instructions.html
delete mode 100644 wqflask/wqflask/templates/security/email/login_instructions.txt
delete mode 100644 wqflask/wqflask/templates/security/email/reset_instructions.html
delete mode 100644 wqflask/wqflask/templates/security/email/reset_instructions.txt
delete mode 100644 wqflask/wqflask/templates/security/email/reset_notice.html
delete mode 100644 wqflask/wqflask/templates/security/email/reset_notice.txt
delete mode 100644 wqflask/wqflask/templates/security/email/welcome.html
delete mode 100644 wqflask/wqflask/templates/security/email/welcome.txt
delete mode 100644 wqflask/wqflask/templates/security/forgot_password.html
delete mode 100644 wqflask/wqflask/templates/security/login_user.html
delete mode 100644 wqflask/wqflask/templates/security/register_user.html
delete mode 100644 wqflask/wqflask/templates/security/reset_password.html
delete mode 100644 wqflask/wqflask/templates/security/send_confirmation.html
delete mode 100644 wqflask/wqflask/templates/security/send_login.html
delete mode 100644 wqflask/wqflask/templates/security/thank_you.html
diff --git a/wqflask/wqflask/templates/new_security/forgot_password_step2.html b/wqflask/wqflask/templates/new_security/forgot_password_step2.html
index 1295e589..888dcad4 100644
--- a/wqflask/wqflask/templates/new_security/forgot_password_step2.html
+++ b/wqflask/wqflask/templates/new_security/forgot_password_step2.html
@@ -1,14 +1,9 @@
{% extends "base.html" %}
{% block title %}Register{% endblock %}
{% block content %}
-
- Check your email.
- Password Reset
-
- Thanks for verifying. -
-You will receive an email with the subject "{{ subject }}".
+ +You will receive an email with the subject {{ subject }}.
You must click the link in the email to complete registration.
diff --git a/wqflask/wqflask/templates/new_security/thank_you.html b/wqflask/wqflask/templates/new_security/thank_you.html index 97cb7807..7d1018a5 100644 --- a/wqflask/wqflask/templates/new_security/thank_you.html +++ b/wqflask/wqflask/templates/new_security/thank_you.html @@ -1,32 +1,24 @@ {% extends "base.html" %} {% block title %}Register{% endblock %} {% block content %} -- Thanks for verifying. -
-- Thanks for verifying. -
-- {{ field.label }} {{ field(**kwargs)|safe }} - {% if field.errors %} -
- - {% if field.errors %} -
You must confirm your email address before signing in.
-Check your email for confirmation instructions.
-Can't find the email? Check your spam folder.
-Still can't find it? - Click here to resend.
-{{ field(**kwargs)|safe }}
-{% endmacro %} diff --git a/wqflask/wqflask/templates/security/_menu.html b/wqflask/wqflask/templates/security/_menu.html deleted file mode 100644 index 5291f809..00000000 --- a/wqflask/wqflask/templates/security/_menu.html +++ /dev/null @@ -1,15 +0,0 @@ -{% if security.registerable or security.recoverable or security.confirmabled %} -Your password has been changed.
-{% if security.recoverable %} -If you did not change your password, click here to reset it.
-{% endif %} diff --git a/wqflask/wqflask/templates/security/email/change_notice.txt b/wqflask/wqflask/templates/security/email/change_notice.txt deleted file mode 100644 index e74bd80d..00000000 --- a/wqflask/wqflask/templates/security/email/change_notice.txt +++ /dev/null @@ -1,5 +0,0 @@ -Your password has been changed -{% if security.recoverable %} -If you did not change your password, click the link below to reset it. -{{ url_for_security('forgot_password', _external=True) }} -{% endif %} diff --git a/wqflask/wqflask/templates/security/email/confirmation_instructions.html b/wqflask/wqflask/templates/security/email/confirmation_instructions.html deleted file mode 100644 index 239f670f..00000000 --- a/wqflask/wqflask/templates/security/email/confirmation_instructions.html +++ /dev/null @@ -1,5 +0,0 @@ -Welcome to GeneNetwork!
- -Please confirm your email through the link below:
- - diff --git a/wqflask/wqflask/templates/security/email/confirmation_instructions.txt b/wqflask/wqflask/templates/security/email/confirmation_instructions.txt deleted file mode 100644 index babedd8b..00000000 --- a/wqflask/wqflask/templates/security/email/confirmation_instructions.txt +++ /dev/null @@ -1,5 +0,0 @@ -Welcome to GeneNetwork! - -Please confirm your email through the link below: - -{{ confirmation_link }} diff --git a/wqflask/wqflask/templates/security/email/login_instructions.html b/wqflask/wqflask/templates/security/email/login_instructions.html deleted file mode 100644 index 45a7cb57..00000000 --- a/wqflask/wqflask/templates/security/email/login_instructions.html +++ /dev/null @@ -1,5 +0,0 @@ -Welcome {{ user.email }}!
- -You can log into your through the link below:
- - \ No newline at end of file diff --git a/wqflask/wqflask/templates/security/email/login_instructions.txt b/wqflask/wqflask/templates/security/email/login_instructions.txt deleted file mode 100644 index 1364ed65..00000000 --- a/wqflask/wqflask/templates/security/email/login_instructions.txt +++ /dev/null @@ -1,5 +0,0 @@ -Welcome {{ user.email }}! - -You can log into your through the link below: - -{{ login_link }} \ No newline at end of file diff --git a/wqflask/wqflask/templates/security/email/reset_instructions.html b/wqflask/wqflask/templates/security/email/reset_instructions.html deleted file mode 100644 index fd0b48d8..00000000 --- a/wqflask/wqflask/templates/security/email/reset_instructions.html +++ /dev/null @@ -1 +0,0 @@ -Click here to reset your password
\ No newline at end of file diff --git a/wqflask/wqflask/templates/security/email/reset_instructions.txt b/wqflask/wqflask/templates/security/email/reset_instructions.txt deleted file mode 100644 index 91ac288e..00000000 --- a/wqflask/wqflask/templates/security/email/reset_instructions.txt +++ /dev/null @@ -1,3 +0,0 @@ -Click the link below to reset your password: - -{{ reset_link }} \ No newline at end of file diff --git a/wqflask/wqflask/templates/security/email/reset_notice.html b/wqflask/wqflask/templates/security/email/reset_notice.html deleted file mode 100644 index 536e2961..00000000 --- a/wqflask/wqflask/templates/security/email/reset_notice.html +++ /dev/null @@ -1 +0,0 @@ -Your password has been reset
\ No newline at end of file diff --git a/wqflask/wqflask/templates/security/email/reset_notice.txt b/wqflask/wqflask/templates/security/email/reset_notice.txt deleted file mode 100644 index a3fa0b4b..00000000 --- a/wqflask/wqflask/templates/security/email/reset_notice.txt +++ /dev/null @@ -1 +0,0 @@ -Your password has been reset \ No newline at end of file diff --git a/wqflask/wqflask/templates/security/email/welcome.html b/wqflask/wqflask/templates/security/email/welcome.html deleted file mode 100644 index 3cb01ce0..00000000 --- a/wqflask/wqflask/templates/security/email/welcome.html +++ /dev/null @@ -1,9 +0,0 @@ -Welcome {{ user.email }}!
- -We hope you find GeneNetwork an amazing resource!
- -{% if security.confirmable %} -You can confirm your email through the link below:
- - -{% endif %} diff --git a/wqflask/wqflask/templates/security/email/welcome.txt b/wqflask/wqflask/templates/security/email/welcome.txt deleted file mode 100644 index 9a400686..00000000 --- a/wqflask/wqflask/templates/security/email/welcome.txt +++ /dev/null @@ -1,9 +0,0 @@ -Welcome {{ user.email }}! - -We hope you find GeneNetwork an amazing resource! - -{% if security.confirmable %} -You can confirm your email through the link below: - -{{ confirmation_link }} -{% endif %} diff --git a/wqflask/wqflask/templates/security/forgot_password.html b/wqflask/wqflask/templates/security/forgot_password.html deleted file mode 100644 index 90fcaf66..00000000 --- a/wqflask/wqflask/templates/security/forgot_password.html +++ /dev/null @@ -1,9 +0,0 @@ -{% from "security/_macros.html" import render_field_with_errors, render_field %} -{% include "security/_messages.html" %} -