diff options
Diffstat (limited to 'gn_auth/templates/oauth2')
-rw-r--r-- | gn_auth/templates/oauth2/authorise-user.html | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/gn_auth/templates/oauth2/authorise-user.html b/gn_auth/templates/oauth2/authorise-user.html index deac40a..2ef22af 100644 --- a/gn_auth/templates/oauth2/authorise-user.html +++ b/gn_auth/templates/oauth2/authorise-user.html @@ -17,21 +17,29 @@ <input type="hidden" name="scope" value="{{scope | join(' ')}}" /> <input type="hidden" name="client_id" value="{{client.client_id}}" /> - <fieldset> - <legend>User Credentials</legend> - <fieldset 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"/> - </fieldset> + <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> - <fieldset class="form-group"> + <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" /> - </fieldset> - </fieldset> - - <input type="submit" value="authorise" class="btn btn-primary" /> + </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', + client_id=client.client_id, + redirect_uri=redirect_uri, + response_type=response_type)}}" + title="Click here to change your password." + class="form-text text-danger">Forgot Password</a> + {%endif%} + </div> </form> {%endblock%} |