diff options
author | Simo Sorce <simo@redhat.com> | 2014-10-13 23:41:12 -0400 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2014-10-24 18:03:28 +0200 |
commit | d597f362db9012a47164369e7614fd6a2060e7e5 (patch) | |
tree | a6ba342eefbe4c2d40f077fdcdcfb853934b192d /templates/login | |
parent | fe50fd3423969fca640cc35b32678bab5fd491cb (diff) | |
download | ipsilon-d597f362db9012a47164369e7614fd6a2060e7e5.tar.gz ipsilon-d597f362db9012a47164369e7614fd6a2060e7e5.tar.xz ipsilon-d597f362db9012a47164369e7614fd6a2060e7e5.zip |
Return to provider if user cancels login
When the cancel button is hit return to the provider and eventually to the
original application via return urls.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'templates/login')
-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 %} |