summaryrefslogtreecommitdiff
path: root/actions/login.php
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-08-13 22:18:06 +0800
committerJeffery To <jeffery.to@gmail.com>2009-08-13 22:18:06 +0800
commit7dc3a90d1252137859a687e32313ea569dcf8796 (patch)
tree8da73e6ca6f22a8e08c0126b5521e74d77005f45 /actions/login.php
parent853b6d38b362e3a905195d9ff850c9a884d412bd (diff)
Added a configuration option to disable OpenID.
If $config['openid']['enabled'] is set to false, OpenID is removed from the navigation and direct accesses to OpenID login pages redirect to the login page. If OpenID is enabled, $config['site']['openidonly'] is ignored, i.e. OpenID is required to go OpenID-only.
Diffstat (limited to 'actions/login.php')
-rw-r--r--actions/login.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/actions/login.php b/actions/login.php
index c20854f15..6f1b4777e 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -251,11 +251,15 @@ class LoginAction extends Action
return _('For security reasons, please re-enter your ' .
'user name and password ' .
'before changing your settings.');
- } else {
+ } else if (common_config('openid', 'enabled')) {
return _('Login with your username and password. ' .
'Don\'t have a username yet? ' .
'[Register](%%action.register%%) a new account, or ' .
'try [OpenID](%%action.openidlogin%%). ');
+ } else {
+ return _('Login with your username and password. ' .
+ 'Don\'t have a username yet? ' .
+ '[Register](%%action.register%%) a new account.');
}
}