You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.4 KiB

defined('_JEXEC') or die;
use Joomla\CMS\Helper\AuthenticationHelper;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
$twofactormethods = AuthenticationHelper::getTwoFactorMethods();
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<jdoc:include type="head" />
<jdoc:include type="message" />
<form action="<?php echo Route::_('index.php', true); ?>" method="post" id="form-login">
<label for="username"><?php echo Text::_('JGLOBAL_USERNAME'); ?></label>
<input name="username" id="username" type="text">
<label for="password"><?php echo Text::_('JGLOBAL_PASSWORD'); ?></label>
<input name="password" id="password" type="password">
<?php if (count($twofactormethods) > 1) : ?>
<label for="secretkey"><?php echo Text::_('JGLOBAL_SECRETKEY'); ?></label>
<input name="secretkey" autocomplete="one-time-code" id="secretkey" type="text">
<?php endif; ?>
<input type="submit" name="Submit" value="<?php echo Text::_('JLOGIN'); ?>">
<input type="hidden" name="option" value="com_users">
<input type="hidden" name="task" value="user.login">
<input type="hidden" name="return" value="<?php echo base64_encode(Uri::base()); ?>">
<?php echo HTMLHelper::_('form.token'); ?>