forked from GNUsocial/gnu-social
add some debugging code
darcs-hash:20080604201123-84dde-ff9ec8530474e194eee5e6fcc6190f7cd6fc5b5c.gz
This commit is contained in:
parent
9d670d25f8
commit
593f1e5e2c
@ -36,10 +36,12 @@ class UserauthorizationAction extends Action {
|
|||||||
$req = $this->get_stored_request();
|
$req = $this->get_stored_request();
|
||||||
if (!$req) {
|
if (!$req) {
|
||||||
# this must be a new request
|
# this must be a new request
|
||||||
|
common_debug('userauthorization.php - getting new request');
|
||||||
$req = $this->get_new_request();
|
$req = $this->get_new_request();
|
||||||
if (!$req) {
|
if (!$req) {
|
||||||
common_server_error(_t('No request found!'));
|
common_server_error(_t('No request found!'));
|
||||||
}
|
}
|
||||||
|
common_debug('userauthorization.php - validating request');
|
||||||
# XXX: only validate new requests, since nonce is one-time use
|
# XXX: only validate new requests, since nonce is one-time use
|
||||||
$this->validate_request($req);
|
$this->validate_request($req);
|
||||||
}
|
}
|
||||||
@ -50,11 +52,15 @@ class UserauthorizationAction extends Action {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (common_logged_in()) {
|
if (common_logged_in()) {
|
||||||
|
common_debug('userauthorization.php - showing form');
|
||||||
$this->show_form($req);
|
$this->show_form($req);
|
||||||
} else {
|
} else {
|
||||||
|
common_debug('userauthorization.php - storing request in session');
|
||||||
# Go log in, and then come back
|
# Go log in, and then come back
|
||||||
$this->store_request($req);
|
$this->store_request($req);
|
||||||
|
common_debug('userauthorization.php - saving URL for returnto');
|
||||||
common_set_returnto(common_local_url('userauthorization'));
|
common_set_returnto(common_local_url('userauthorization'));
|
||||||
|
common_debug('userauthorization.php - redirecting to login');
|
||||||
common_redirect(common_local_url('login'));
|
common_redirect(common_local_url('login'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user