login doesn't bark if the user is automatically logged in
darcs-hash:20080624040548-34904-3b5a78f4ed40db913c82e90fe6955f26aac0f92a.gz
This commit is contained in:
parent
5650d698be
commit
836f5bb756
@ -23,7 +23,7 @@ class LoginAction extends Action {
|
|||||||
|
|
||||||
function handle($args) {
|
function handle($args) {
|
||||||
parent::handle($args);
|
parent::handle($args);
|
||||||
if (common_logged_in()) {
|
if (common_is_real_login()) {
|
||||||
common_user_error(_t('Already logged in.'));
|
common_user_error(_t('Already logged in.'));
|
||||||
} else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
} else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
$this->check_login();
|
$this->check_login();
|
||||||
|
Loading…
Reference in New Issue
Block a user