summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-01-27 16:25:12 -0500
committerSimo Sorce <simo@redhat.com>2014-01-27 16:25:38 -0500
commit630b85e06018fb3d9f8c34685a406b3770d58b54 (patch)
tree0e68c2e6d7cc856fc577e6a2355a8be3d74ff540
parentcd30057eec4c772171c5558d9fac2c1f73bc12dd (diff)
downloadipsilon-master.zip
ipsilon-master.tar.gz
ipsilon-master.tar.xz
Add help text to be shown on form based login pageHEADmaster
Signed-off-by: Simo Sorce <simo@redhat.com>
-rwxr-xr-xipsilon/login/authpam.py10
-rw-r--r--templates/login/pam.html3
2 files changed, 13 insertions, 0 deletions
diff --git a/ipsilon/login/authpam.py b/ipsilon/login/authpam.py
index ce60f39..d5ab428 100755
--- a/ipsilon/login/authpam.py
+++ b/ipsilon/login/authpam.py
@@ -41,6 +41,7 @@ class Pam(LoginPageBase):
return self._template('login/pam.html', title='Login',
action='%s/login/pam' % self.basepath,
service_name=self.lm.service_name,
+ help_text=self.lm.help_text,
username_text=self.lm.username_text,
password_text=self.lm.password_text)
@@ -85,6 +86,11 @@ for authentication. """
'string',
'remote'
],
+ 'help text': [
+ """ The text shown to guide the user at login time. """,
+ 'string',
+ 'Insert your Username and Password and then submit.'
+ ],
'username text': [
""" The text shown to ask for the username in the form. """,
'string',
@@ -102,6 +108,10 @@ for authentication. """
return self.get_config_value('service name')
@property
+ def help_text(self):
+ return self.get_config_value('help text')
+
+ @property
def username_text(self):
return self.get_config_value('username text')
diff --git a/templates/login/pam.html b/templates/login/pam.html
index 4e490fe..0e83f12 100644
--- a/templates/login/pam.html
+++ b/templates/login/pam.html
@@ -12,6 +12,9 @@
<p>Ipsilon</p>
</div>
<div id="login">
+ <p>
+ {{ help_text }}
+ </p>
<form id="login_form" action="{{ action }}" method="post" enctype="application/x-www-form-urlencoded">
<p>
<label for="username">{{ username_text }}</label>