place webauthn login button next to existing login button

This commit is contained in:
Uwe Steinmann 2023-05-06 09:04:26 +02:00
parent ddfa019356
commit a85c938792

View File

@ -302,13 +302,11 @@ function webauthnAuthenticate(key, cb){
$this->contentContainerEnd(); $this->contentContainerEnd();
echo '<div class="control-group">'; echo '<div class="control-group">';
$this->formSubmit(getMLText('submit_login')); $this->formSubmit(getMLText('submit_login'));
$this->formSubmit(getMLText('submit_webauthn_login'), 'webauthnlogin');
echo '</div>'; echo '</div>';
?> ?>
</form> </form>
<?php <?php
echo '<div class="control-group">';
$this->formSubmit(getMLText('submit_webauthn_login'), 'webauthnlogin');
echo '</div>';
$tmpfoot = array(); $tmpfoot = array();
if ($enableguestlogin && $guestid && $dms->getUser((int) $guestid)) if ($enableguestlogin && $guestid && $dms->getUser((int) $guestid))
$tmpfoot[] = "<a href=\"\" id=\"guestlogin\">" . getMLText("guest_login") . "</a>\n"; $tmpfoot[] = "<a href=\"\" id=\"guestlogin\">" . getMLText("guest_login") . "</a>\n";