summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-08-26 16:38:14 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2014-08-27 18:15:03 -0400
commitb77995fe6c3a51257a8df1e8421217e5a71b3648 (patch)
tree09e0202296bb16cccafdf4729502bdb2d2394f60 /templates
parenta06b990c66c32909b8872ac2f5d825c6b7316a3a (diff)
downloadipsilon.git-b77995fe6c3a51257a8df1e8421217e5a71b3648.tar.gz
ipsilon.git-b77995fe6c3a51257a8df1e8421217e5a71b3648.tar.xz
ipsilon.git-b77995fe6c3a51257a8df1e8421217e5a71b3648.zip
Add FAS login plugin
This plugin simply take a Fedora username and password and authenticates the user against the FAS Server. FAS returned data is saved as userdata in the 'fas' attribute. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/login/fas.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/templates/login/fas.html b/templates/login/fas.html
new file mode 100644
index 0000000..b856731
--- /dev/null
+++ b/templates/login/fas.html
@@ -0,0 +1,43 @@
+{% 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">
+ <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 %}