blob: 07edb7363e7e00e897ddda2664746cdf3e6b59d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{%extends "base.html"%}
{%block title%}Authorise User{%endblock%}
{%block pagetitle%}Authenticate to the API Server{%endblock%}
{%block content%}
{{flash_messages()}}
<form method="POST" action="{{url_for(
'oauth2.auth.authorise',
response_type=response_type,
client_id=client.client_id,
redirect_uri=redirect_uri)}}">
<input type="hidden" name="response_type" value="{{response_type}}" />
<input type="hidden" name="redirect_uri" value="{{redirect_uri}}" />
<input type="hidden" name="scope" value="{{scope | join(' ')}}" />
<input type="hidden" name="client_id" value="{{client.client_id}}" />
<legend>User Credentials</legend>
<div class="form-group">
<label for="user:email" class="form-label">Email</label>
<input type="email" name="user:email" id="user:email" required="required"
class="form-control"/>
</div>
<div class="form-group">
<label for="user:password" class="form-label">Password</label>
<input type="password" name="user:password" id="user:password"
required="required" class="form-control" />
</div>
<div class="form-group">
<input type="submit" value="authorise" class="btn btn-primary" />
{%if display_forgot_password%}
<a href="{{url_for('oauth2.users.forgot_password')}}"
title="Click here to change your password."
class="form-text text-danger">Forgot Password</a>
{%endif%}
</div>
</form>
{%endblock%}
|