diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/login/form.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/login/form.html b/templates/login/form.html index e5e5978..69a0cc7 100644 --- a/templates/login/form.html +++ b/templates/login/form.html @@ -33,7 +33,11 @@ </div> <div class="form-group"> <div class="col-sm-offset-2 col-md-offset-2 col-xs-12 col-sm-10 col-md-10 submit"> - <a href="{{ basepath }}/" title="Cancel" class="btn btn-link" tabindex="4">Cancel</a> + {% if cancel_url %} + <a href="{{ cancel_url }}" title="Cancel" class="btn btn-link" tabindex="4">Cancel</a> + {% else %} + <a href="{{ basepath }}" title="Cancel" class="btn btn-link" tabindex="4">Cancel</a> + {% endif %} {% if next_url %} <a href="{{ next_url }}" title="Next authentication method" class="btn btn-link" tabindex="5">Next method </a> {% endif %} |