aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/users.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 54d87b2fd..843b897e9 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1141,10 +1141,13 @@ function elgg_user_account_page_handler($page_elements, $handler) {
* dropdown login link.
*
* @return void
- * @todo finish
* @access private
*/
function elgg_user_login_page_handler() {
+ if (elgg_is_logged_in()) {
+ forward();
+ }
+
$login_box = elgg_view('core/account/login_box');
$content = elgg_view_layout('one_column', array('content' => $login_box));
echo elgg_view_page(elgg_echo('login'), $content);