mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-18 03:33:26 +02:00
[WIP] Refactor account/lost
This commit is contained in:
@@ -11,37 +11,9 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
$title = 'Lost Account Interface';
|
||||
|
||||
if(!setting('core.mail_enabled'))
|
||||
{
|
||||
echo '<b>Account maker is not configured to send e-mails, you can\'t use Lost Account Interface. Contact with admin to get help.</b>';
|
||||
if(!setting('core.mail_enabled')) {
|
||||
echo "<b>Account maker is not configured to send e-mails, you can't use Lost Account Interface. Contact with admin to get help.</b>";
|
||||
return;
|
||||
}
|
||||
|
||||
$action_type = $_REQUEST['action_type'] ?? '';
|
||||
if($action == '') {
|
||||
$twig->display('account.lost.form.html.twig');
|
||||
}
|
||||
else if($action == 'step1' && $action_type == '') {
|
||||
$twig->display('account.lost.noaction.html.twig');
|
||||
}
|
||||
elseif($action == 'step1' && $action_type == 'email') {
|
||||
require PAGES . 'account/lost/step1-email.php';
|
||||
}
|
||||
elseif($action == 'send-code') {
|
||||
require PAGES . 'account/lost/send-code.php';
|
||||
}
|
||||
elseif($action == 'step1' && $action_type == 'reckey') {
|
||||
require PAGES . 'account/lost/step1-reckey.php';
|
||||
}
|
||||
elseif($action == 'step2') {
|
||||
require PAGES . 'account/lost/step2.php';
|
||||
}
|
||||
elseif($action == 'step3') {
|
||||
require PAGES . 'account/lost/step3.php';
|
||||
}
|
||||
elseif($action == 'check-code') {
|
||||
require PAGES . 'account/lost/check-code.php';
|
||||
}
|
||||
elseif($action == 'set-new-password') {
|
||||
require PAGES . 'account/lost/set-new-password.php';
|
||||
}
|
||||
$twig->display('account/lost/form.html.twig');
|
||||
|
Reference in New Issue
Block a user