lostpass fixes and login/logout flow if authenticated but no default channel exists

This commit is contained in:
friendica
2013-01-27 01:19:24 -08:00
parent 22bde9b2b7
commit 28ab6d5bf5
9 changed files with 45 additions and 22 deletions

View File

@@ -80,7 +80,12 @@ EOT;
}
else {
$nav['login'] = Array('login',t('Login'), ($a->module == 'login'?'selected':''), t('Sign in'));
if(! get_account_id())
$nav['login'] = Array('login',t('Login'), ($a->module == 'login'?'selected':''), t('Sign in'));
else
$nav['alogout'] = Array('logout',t('Logout'), "", t('End this session'));
}
if($observer) {