Skip to content

Commit

Permalink
fixes aesirxio/sso#64 Demo user
Browse files Browse the repository at this point in the history
  • Loading branch information
vietredweb committed May 9, 2023
1 parent 444508b commit c432825
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions template/html/com_users/login/default_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
if ($showRegularLogin):
?>
<div class="txt_or my-3"><span class="font-inter fw-medium bg-white px-3 py-2 d-inline-block">OR</span></div>
<?php
$demoUser = $input->get('demo_user');
$demoPassword = $input->get('demo_password');
?>
<?php if($demoUser && $demoPassword): ?>
<div class="my-3">Demo account: <?php echo $demoUser ?> / <?php echo $demoPassword ?></div>
<?php endif; ?>
<form action="<?php echo JRoute::_('index.php?option=com_users&task=user.login'); ?>" method="post" class="form-validate form-horizontal well">
<fieldset>
<?php echo $this->form->renderFieldset('credentials'); ?>
Expand Down

0 comments on commit c432825

Please sign in to comment.