mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-19 20:13:27 +02:00
[WIP] nikic/fast-route implementation
I will describe it more in Pull Request
This commit is contained in:
29
system/pages/account/base.php
Normal file
29
system/pages/account/base.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Account confirm mail
|
||||
* Keept for compability
|
||||
*
|
||||
* @package MyAAC
|
||||
* @author Slawkens <slawkens@gmail.com>
|
||||
* @copyright 2019 MyAAC
|
||||
* @link https://my-aac.org
|
||||
*/
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
if(!$logged)
|
||||
{
|
||||
if(!empty($errors))
|
||||
$twig->display('error_box.html.twig', array('errors' => $errors));
|
||||
|
||||
$twig->display('account.login.html.twig', array(
|
||||
'redirect' => isset($_REQUEST['redirect']) ? $_REQUEST['redirect'] : null,
|
||||
'account' => USE_ACCOUNT_NAME ? 'Name' : 'Number',
|
||||
'error' => isset($errors[0]) ? $errors[0] : null
|
||||
));
|
||||
|
||||
return;
|
||||
}
|
||||
else {
|
||||
$show_form = true;
|
||||
$config_salt_enabled = $db->hasColumn('accounts', 'salt');
|
||||
}
|
Reference in New Issue
Block a user