From b604ed0a314065cb21b6eaa9376e50e9c86dfc67 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 15:35:13 +0000 Subject: [PATCH] mlanthaler: Added short description of OpenID to the login form. Please update also the stylesheet "openid_login.css" in mysite/css (it's not under version control, so I'll post the content of the file here). -- openid_login.css -- #OpenIDLoginForm_LoginForm_OpenIDURL { background: url(../../sapphire/images/openid-small.gif) no-repeat; background-color: #fff; background-position: 0 50%; color: #000; padding-left: 18px; width: 284px; } #OpenIDDescription { margin-bottom: 2em; } #OpenIDDescription p { font-size: 1em; line-height: 1.3em; margin-top: 0 !important; } (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42095 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/OpenID/OpenIDLoginForm.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/security/OpenID/OpenIDLoginForm.php b/security/OpenID/OpenIDLoginForm.php index df083a250..b6b72ac05 100644 --- a/security/OpenID/OpenIDLoginForm.php +++ b/security/OpenID/OpenIDLoginForm.php @@ -55,6 +55,10 @@ class OpenIDLoginForm extends LoginForm { } else { if(!$fields) { $fields = new FieldSet( + new LiteralField("OpenIDDescription", ' +

OpenID is an Internet-wide identity system + that allows you to sign in to many websites with a single account. + For more information visit openid.net.

'), new HiddenField("AuthenticationMethod", null, $this->authenticator_class, $this), new TextField("OpenIDURL", "OpenID URL",