aboutsummaryrefslogtreecommitdiff
path: root/gn3/templates/login.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-05-29 11:21:48 +0300
committerFrederick Muriuki Muriithi2023-05-29 11:21:48 +0300
commit25c6da03e1639895f0051e8be6502762beefde0b (patch)
tree3355d9538c550753b6b5f45f37446c0f1e584011 /gn3/templates/login.html
parenta448329fac4ca3c3c42dd180e3bc823024bbd25c (diff)
downloadgenenetwork3-25c6da03e1639895f0051e8be6502762beefde0b.tar.gz
Enable Administrator login on GN3
* gn3/auth/authentication/oauth2/views.py: Remove endpoint * gn3/auth/authorisation/users/admin/__init__.py: New admin module * gn3/auth/authorisation/users/admin/ui.py: New admin module * gn3/auth/authorisation/users/admin/views.py: New admin module * gn3/auth/views.py: Use new admin module * gn3/errors.py: Fix linting errors * gn3/templates/login.html: New html template * main.py: Fix linting errors
Diffstat (limited to 'gn3/templates/login.html')
-rw-r--r--gn3/templates/login.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/gn3/templates/login.html b/gn3/templates/login.html
new file mode 100644
index 0000000..cf46009
--- /dev/null
+++ b/gn3/templates/login.html
@@ -0,0 +1,32 @@
+{%extends "base.html"%}
+
+{%block title%}Log in to Genenetwork3{%endblock%}
+
+{%block content%}
+{{flash_messages()}}
+
+<h1>Genenetwork3: Admin Log In</h1>
+
+<form method="POST" action="{{url_for('oauth2.admin.login')}}">
+
+ <fieldset>
+ <legend>User Credentials</legend>
+
+ <input name="next_uri" type="hidden" value={{next_uri}}>
+
+ <fieldset>
+ <label for="txt:email">Email Address</label>
+ <input name="email" type="email" id="txt:email" required="required"
+ placeholder="your@email.address" />
+ </fieldset>
+
+ <fieldset>
+ <label for="txt:password">Password</label>
+ <input name="password" type="password" id="txt:password"
+ required="required" />
+ </fieldset>
+ </fieldset>
+
+ <input type="submit" value="log in" />
+</form>
+{%endblock%}