diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-08-10 11:53:35 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-10 11:53:35 -0400 |
commit | e9ed20a69d8f646bc85151c1e890f5828a966fcf (patch) | |
tree | e72bdf25cc94c630c31863d2985b1f29b4b27414 /actions/register.php | |
parent | 17dcf1c3170bc905e3b0fdffc804d6f7229ac61b (diff) | |
parent | 14b46e2183f10359cc53d597913a878f53e23719 (diff) |
Merge commit 'jeff-themovie/0.8.x-openidonly' into 0.8.x
Diffstat (limited to 'actions/register.php')
-rw-r--r-- | actions/register.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actions/register.php b/actions/register.php index dcbbbdb6a..046a76b80 100644 --- a/actions/register.php +++ b/actions/register.php @@ -116,6 +116,8 @@ class RegisterAction extends Action * * Checks if registration is closed and shows an error if so. * + * Checks if only OpenID is allowed and redirects to openidlogin if so. + * * @param array $args $_REQUEST data * * @return void @@ -127,6 +129,8 @@ class RegisterAction extends Action if (common_config('site', 'closed')) { $this->clientError(_('Registration not allowed.')); + } else if (common_config('site', 'openidonly')) { + common_redirect(common_local_url('openidlogin')); } else if (common_logged_in()) { $this->clientError(_('Already logged in.')); } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { |