diff --git a/system/pages/account/lost.php b/system/pages/account/lost.php
index 42e23d38..c0dc5965 100644
--- a/system/pages/account/lost.php
+++ b/system/pages/account/lost.php
@@ -11,37 +11,9 @@
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Lost Account Interface';
-if(!setting('core.mail_enabled'))
-{
- echo 'Account maker is not configured to send e-mails, you can\'t use Lost Account Interface. Contact with admin to get help.';
+if(!setting('core.mail_enabled')) {
+ echo "Account maker is not configured to send e-mails, you can't use Lost Account Interface. Contact with admin to get help.";
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');
diff --git a/system/pages/account/lost/check-code.php b/system/pages/account/lost/check-code.php
index 42c1ae1c..3500299b 100644
--- a/system/pages/account/lost/check-code.php
+++ b/system/pages/account/lost/check-code.php
@@ -1,9 +1,11 @@
display('account.lost.check-code.html.twig', [
+ $twig->display('account/lost/check-code.html.twig', [
'code' => $code,
'characters' => $character,
]);
@@ -18,22 +20,10 @@ else
if($account->isLoaded()) {
if($account->getCustomField('email_code') == $code) {
- echo '
- Please enter new password to your account and repeat to make sure you remember password.
-
Please enter your character name | -
- - |
-
What do you want? | -
-
- - - - |
-
- {{ include('buttons.submit.html.twig') }} - | -
- - {{ include('buttons.back.html.twig') }} - - | -
Please enter e-mail to account | -
- Character: - E-mail to account: - |
-
- {{ include('buttons.submit.html.twig') }}
- |
-
Passwords |
+ New password: + Repeat new password: + |
+
+
+ {% set button_name = 'Submit' %}
+ {% include('buttons.base.html.twig') %}
+
+ |
+
+ | Code & character name |
+ |
Your code: Character: |
- {{ include('buttons.submit.html.twig') }} + {% set button_name = 'Submit' %} + {% include('buttons.base.html.twig') %} |
Please enter e-mail to account | +
+ Character: + E-mail to account: + |
+
+
+ {% set button_name = 'Submit' %}
+ {% include('buttons.base.html.twig') %}
+
+ |
+
+ | Your account name, new password and new e-mail |
+ |
Account name: {{ account.getName() }} New password: {{ newPassword }} New e-mail address: {{ newEmail }} @@ -15,7 +15,7 @@ Your account name, new password and new e-mail. |
+
+
+
+
+
+
+
-
-
To do so, please click this link: - {{ getLink('account/lost') }}?action=check-code&code={{ newCode }}&character={{ nick|urlencode }} + {{ getLink('account/lost/check-code') }}?code={{ newCode }}&character={{ nick|urlencode }} -or open page: {{ getLink('account/lost') }}?action=check-code and in field "code" write {{ newCode }} +or open page: {{ getLink('account/lost/check-code') }} and in field "code" write {{ newCode }} If you did not request a password change, you may ignore this message and your password will remain unchanged. diff --git a/system/templates/mail.account.lost.new-password.html.twig b/system/templates/mail.account.lost.new-password.html.twig index 17eca26d..bffb9ca5 100644 --- a/system/templates/mail.account.lost.new-password.html.twig +++ b/system/templates/mail.account.lost.new-password.html.twig @@ -1,5 +1,5 @@ Your account name and password!-Changed password to your account in Lost Account Interface on server config('lua')['serverName'] }} +Changed password to your account in Lost Account Interface on server {{ config('lua')['serverName'] }} Account name: {{ account.getName() }} New password: {{ newPassword }} |