put login form into the nav bar. Proof of concept - needs a bit of UI tweaks.

This commit is contained in:
zotlabs
2017-01-23 16:31:40 -08:00
parent 61588a4b77
commit cb47354a4f
5 changed files with 28 additions and 4 deletions

View File

@@ -112,6 +112,7 @@ EOT;
}
else {
if(! get_account_id()) {
$nav['login'] = login();
$nav['loginmenu'][] = Array('login',t('Login'),'',t('Sign in'),'login_nav_btn');
}
else
@@ -128,6 +129,7 @@ EOT;
}
elseif(! $_SESSION['authenticated']) {
$nav['remote_login'] = remote_login();
$nav['loginmenu'][] = Array('rmagic',t('Remote authentication'),'',t('Click to authenticate to your home hub'),'rmagic_nav_btn');
}