'; ?> username ?? null; $exception = null; $r = get('r'); if (is_post()) { try { \App\Content::verifyPost(); if (isset($_SESSION['login_lock_timeout']) && time() < $_SESSION['login_lock_timeout']) { $remaining_time = ($_SESSION['login_lock_timeout'] - time()) / 60; throw new Exception('Please try again after '.round($remaining_time).' minutes.'); } $result = \App\App::webAuth($_POST); if ($result) { unset($_SESSION['login_attempts']); unset($_SESSION['login_lock_timeout']); // redirect to a secured page redirect($r ?: APP_URL.'/php_auth_page.php'); } else { $exception = 'Invalid username or password'; if (empty($_SESSION['login_attempts'])) { $_SESSION['login_attempts'] = 0; } $_SESSION['login_attempts']++; if ($_SESSION['login_attempts'] >= 5) { $_SESSION['login_lock_timeout'] = time() + LOGIN_LOCK_TIMEOUT; } } } catch (Exception $ex) { $exception = $ex->getMessage(); } $username = get('username', $_POST); } if (!empty($_SESSION['auth_exception'])) { $exception = $_SESSION['auth_exception']; unset($_SESSION['auth_exception']); } ?>
The default demo password for '.$user->username.' is:
'.$demo_password.'

Run the command below to change passwords:

php '.ROOT_PATH.'/utils/set_password.php --username='.$username.' --password=NEW_PASSWORD
', 'primary') ?> Social Login
This function will require you to login using your google or facebook account. We are NOT storing your social profile/information for this demo. If you have questions and concerns, please contact us at our support forum.', 'warning') ?> Database installation guide to get started.', 'primary') ?>

The simplest UI toolkit for developers & programmers Presenting you with the next level of innovative UX design and engineering. The most modular toolkit available with over 600+ layout permutations. Experience the simplicity of SmartAdmin, everywhere you go!

Learn more >>
Find us on social media

Secure login

No, you missed this one.
Your unique username to app
Sorry, you missed this one.
Your password
2020 © SmartAdmin for PHP by @lodev09