From 780de62db22619582d6b1bffabd1a08862d00d9d Mon Sep 17 00:00:00 2001
From: Patrick Jentsch <p.jentsch@uni-bielefeld.de>
Date: Fri, 23 Oct 2020 10:26:04 +0200
Subject: [PATCH] Rework auth package

---
 web/app/templates/auth/login.html.j2                  | 2 +-
 web/app/templates/auth/register.html.j2               | 2 +-
 web/app/templates/auth/reset_password.html.j2         | 4 ++--
 web/app/templates/auth/reset_password_request.html.j2 | 2 +-
 web/app/templates/auth/unconfirmed.html.j2            | 6 +++---
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/web/app/templates/auth/login.html.j2 b/web/app/templates/auth/login.html.j2
index a477da4f..657da25f 100644
--- a/web/app/templates/auth/login.html.j2
+++ b/web/app/templates/auth/login.html.j2
@@ -18,7 +18,7 @@
     <div class="col s12 m4">
       <div class="card medium">
         <div class="card-content">
-          <h1>{{ title }}</h1>
+          <h1 id="title">{{ title }}</h1>
           <p>Want to boost your research and get going? nopaque is free and no download is needed. Register now!</p>
         </div>
         <div class="card-action right-align">
diff --git a/web/app/templates/auth/register.html.j2 b/web/app/templates/auth/register.html.j2
index db4ef2c0..9909cd60 100644
--- a/web/app/templates/auth/register.html.j2
+++ b/web/app/templates/auth/register.html.j2
@@ -18,7 +18,7 @@
     <div class="col s12 m4">
       <div class="card medium">
         <div class="card-content">
-          <h1>Register</h1>
+          <h1 id="title">{{ title }}</h1>
           <p>Simply enter a username and password to receive your registration email. After that you can start right away.</p>
           <p>It goes without saying that the <a href="{{ url_for('main.privacy_policy') }}">General Data Protection Regulation</a> applies, only necessary data is stored.</p>
           <p>Please also read our <a href="{{ url_for('main.terms_of_use') }}">terms of use</a> before signing up for nopaque!</p>
diff --git a/web/app/templates/auth/reset_password.html.j2 b/web/app/templates/auth/reset_password.html.j2
index 414a2d10..f3e4f26e 100644
--- a/web/app/templates/auth/reset_password.html.j2
+++ b/web/app/templates/auth/reset_password.html.j2
@@ -5,11 +5,11 @@
 <div class="container">
   <div class="row">
     <div class="col s12">
-      <h1>{{ title }}</h1>
+      <h1 id="title">{{ title }}</h1>
     </div>
 
     <div class="col s12 m4">
-      <p>dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,</p>
+      <p>Enter a new password and confirm it! After that, the entered password is your new one!</p>
     </div>
 
     <div class="col s12 m8">
diff --git a/web/app/templates/auth/reset_password_request.html.j2 b/web/app/templates/auth/reset_password_request.html.j2
index 549af6cd..403f1388 100644
--- a/web/app/templates/auth/reset_password_request.html.j2
+++ b/web/app/templates/auth/reset_password_request.html.j2
@@ -5,7 +5,7 @@
 <div class="container">
   <div class="row">
     <div class="col s12">
-      <h1>{{ title }}</h1>
+      <h1 id="title">{{ title }}</h1>
     </div>
 
     <div class="col s12 m4">
diff --git a/web/app/templates/auth/unconfirmed.html.j2 b/web/app/templates/auth/unconfirmed.html.j2
index 98ce4de4..613c51a4 100644
--- a/web/app/templates/auth/unconfirmed.html.j2
+++ b/web/app/templates/auth/unconfirmed.html.j2
@@ -4,7 +4,7 @@
 <div class="container">
   <div class="row">
     <div class="col s12">
-      <h1>{{ title }}</h1>
+      <h1 id="title">{{ title }}</h1>
     </div>
 
     <div class="col s12">
@@ -13,10 +13,10 @@
           <span class="card-title">Hello, {{ current_user.username }}!</span>
           <p><b>You have not confirmed your account yet.</b></p>
           <p>Before you can access this site you need to confirm your account. Check your inbox, you should have received an email with a confirmation link.</p>
-          <p>Need another confirmation email? <a href="{{ url_for('.resend_confirmation') }}">Click here</a></p>
+          <p>Need another confirmation email? Click the button below!</p>
         </div>
         <div class="card-action right-align">
-          <a class="btn" href="{{ url_for('.register') }}"><i class="material-icons left">person_add</i>Register</a>
+          <a class="btn" href="{{ url_for('.resend_confirmation') }}">Resend confirmation mail</a>
         </div>
       </div>
     </div>
-- 
GitLab