diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-05-17 11:05:23 +0200 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-05-17 11:06:52 +0200 |
commit | de4d479af254512700b8aedce9c1a597880322b0 (patch) | |
tree | 029cc84cc1f75155f925c4bde3137e6a8f821533 /inc/html.php | |
parent | 8a6e9b060334bab4d8d2ddcbdb4de32241c7f7e1 (diff) | |
download | rpg-de4d479af254512700b8aedce9c1a597880322b0.tar.gz rpg-de4d479af254512700b8aedce9c1a597880322b0.tar.bz2 |
Let actionOK detect auth backend capabilities
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/html.php b/inc/html.php index c4eb62bc8..01823449e 100644 --- a/inc/html.php +++ b/inc/html.php @@ -45,7 +45,6 @@ function html_login(){ global $lang; global $conf; global $ID; - global $auth; print p_locale_xhtml('login'); print '<div class="centeralign">'.NL; @@ -61,14 +60,14 @@ function html_login(){ $form->addElement(form_makeButton('submit', '', $lang['btn_login'])); $form->endFieldset(); - if($auth && $auth->canDo('addUser') && actionOK('register')){ + if(actionOK('register')){ $form->addElement('<p>' . $lang['reghere'] . ': <a href="'.wl($ID,'do=register').'" rel="nofollow" class="wikilink1">'.$lang['register'].'</a>' . '</p>'); } - if ($auth && $auth->canDo('modPass') && actionOK('resendpwd')) { + if (actionOK('resendpwd')) { $form->addElement('<p>' . $lang['pwdforget'] . ': <a href="'.wl($ID,'do=resendpwd').'" rel="nofollow" class="wikilink1">'.$lang['btn_resendpwd'].'</a>' |