diff options
Diffstat (limited to 'actions/userauthorization.php')
-rw-r--r-- | actions/userauthorization.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php index 54e0ee920..3e7be9747 100644 --- a/actions/userauthorization.php +++ b/actions/userauthorization.php @@ -63,7 +63,11 @@ class UserauthorizationAction extends Action /* Go log in, and then come back. */ common_set_returnto($_SERVER['REQUEST_URI']); - common_redirect(common_local_url('login')); + if (!common_config('site', 'openidonly')) { + common_redirect(common_local_url('login')); + } else { + common_redirect(common_local_url('openidlogin')); + } return; } @@ -353,4 +357,3 @@ class UserauthorizationAction extends Action } } } -?> |