-
- if (common_logged_in()) {
- common_debug('userauthorization.php - showing form');
- $this->show_form($req);
- } else {
- common_debug('userauthorization.php - storing request in session');
- # Go log in, and then come back
- $this->store_request($req);
- common_debug('userauthorization.php - saving URL for returnto');
- common_set_returnto(common_local_url('userauthorization'));
- common_debug('userauthorization.php - redirecting to login');
- common_redirect(common_local_url('login'));
- }