summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-10-10 14:24:27 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2014-10-24 18:03:28 +0200
commit92291b4692864aad0aa4806eaf71e6e1cb354673 (patch)
tree9decc289f9fc5e8b03ecf0c95496c7a2286c7496
parent107379dfafd8d245c61df63ff8cc0391addc9e20 (diff)
downloadipsilon-92291b4692864aad0aa4806eaf71e6e1cb354673.tar.gz
ipsilon-92291b4692864aad0aa4806eaf71e6e1cb354673.tar.xz
ipsilon-92291b4692864aad0aa4806eaf71e6e1cb354673.zip
Drop custom FAS template
The form and fas template are identical so just drop the fas.html template and use the default. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
-rwxr-xr-xipsilon/login/authfas.py2
-rw-r--r--templates/login/fas.html44
2 files changed, 1 insertions, 45 deletions
diff --git a/ipsilon/login/authfas.py b/ipsilon/login/authfas.py
index 36918ec..8f05e82 100755
--- a/ipsilon/login/authfas.py
+++ b/ipsilon/login/authfas.py
@@ -162,7 +162,7 @@ Form based login Manager that uses the Fedora Authentication Server
self.fpc = FasProxyClient(base_url=self.fas_url,
useragent=self.user_agent,
insecure=(self.insecure == 'YES'))
- self.page = FAS(site, self, 'login/fas', 'login/fas.html')
+ self.page = FAS(site, self, 'login/fas')
return self.page
diff --git a/templates/login/fas.html b/templates/login/fas.html
deleted file mode 100644
index 4188ead..0000000
--- a/templates/login/fas.html
+++ /dev/null
@@ -1,44 +0,0 @@
-{% extends "master.html" %}
-{% block main %}
-
-{% if error %}
-<div class="col-sm-12">
- <div class="alert alert-danger">
- <p>{{ error }}</p>
- </div>
-</div>
-
-{% endif %}
-
-<div class="col-sm-7 col-md-6 col-lg-5 login">
- <form class="form-horizontal" role="form" id="login_form" action="{{ action }}" method="post" enctype="application/x-www-form-urlencoded">
- <input type="hidden" name="ipsilon_transaction_id" id="ipsilon_transaction_id" value="{{ ipsilon_transaction_id }}">
- <div class="form-group {% if error_username %} has-error{% endif %}">
- <label for="login_name" class="col-sm-2 col-md-2 control-label">{{ username_text }}</label>
- <div class="col-sm-10 col-md-10">
- <input type="text" class="form-control" name="login_name" id="login_name" placeholder="" tabindex="1" value="{{ username | e }}">
- </div>
- </div>
- <div class="form-group{% if error_password %} has-error{% endif %}">
- <label for="login_password" class="col-sm-2 col-md-2 control-label">{{ password_text }}</label>
- <div class="col-sm-10 col-md-10">
- <input type="password" class="form-control" name="login_password" id="login_password" placeholder="" tabindex="2">
- </div>
- </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 next_url %}
- <a href="{{ next_url }}" title="Next authentication method" class="btn btn-link" tabindex="5">Next method </a>
- {% endif %}
- <button type="submit" value="login" class="btn btn-primary btn-lg" tabindex="3">Log In</button>
- </div>
- </div>
- </form>
-</div>
-
-<div class="col-sm-5 col-md-6 col-lg-7 details">
- <p>{{description}}</p>
-</div>
-
-{% endblock %}