diff options
author | Mario <mario@mariovavti.com> | 2022-03-03 16:52:04 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-03-03 16:52:04 +0000 |
commit | c8417df6f1bf6cf8eae03a1b14e67e6c3c113afa (patch) | |
tree | 1ff37b0776ac623940725b7f675b7d4a7b0ce4b3 /boot.php | |
parent | dc3be7ecf70271b02a98b07a4da081b42601d1d0 (diff) | |
download | volse-hubzilla-c8417df6f1bf6cf8eae03a1b14e67e6c3c113afa.tar.gz volse-hubzilla-c8417df6f1bf6cf8eae03a1b14e67e6c3c113afa.tar.bz2 volse-hubzilla-c8417df6f1bf6cf8eae03a1b14e67e6c3c113afa.zip |
fix duplicate ids in login form and move login/register buttons into the hamburger menu on small screens
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1687,7 +1687,7 @@ function fix_system_urls($oldurl, $newurl) { * @param boolean $login_page (optional) default true * @return string Parsed HTML code. */ -function login($register = false, $form_id = 'main-login', $hiddens = false, $login_page = true) { +function login($register = false, $form_id = 'main_login', $hiddens = false, $login_page = true) { $o = ''; $reg = null; @@ -1747,9 +1747,9 @@ function login($register = false, $form_id = 'main-login', $hiddens = false, $lo '$login' => t('Login'), '$remote_login' => t('Remote Authentication'), '$form_id' => $form_id, - '$lname' => ['username', $lname_label], - '$lpassword' => ['password', t('Password')], - '$remember_me' => [(($login_page) ? 'remember' : 'remember_me'), t('Remember me'), '', '', [t('No'), t('Yes')]], + '$lname' => [$form_id . '_username', $lname_label], + '$lpassword' => [$form_id . '_password', t('Password')], + '$remember_me' => [$form_id . '_remember', t('Remember me'), '', '', [t('No'), t('Yes')]], '$hiddens' => $hiddens, '$register' => $reg, '$lostpass' => t('Forgot your password?'), |