display('account.lost.check-code.html.twig', [ 'code' => $code, 'characters' => $character, ]); else { $player = new OTS_Player(); $account = new OTS_Account(); $player->find($character); if($player->isLoaded()) { $account = $player->getAccount(); } 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.
Passwords
New password:      
Repeat new password: 

' . $twig->render('buttons.submit.html.twig') . '
'; } else { $error = 'Wrong code to change password.'; } } else { $error = "Account of this character or this character doesn't exist."; } } if(!empty($error)) { $twig->display('error_box.html.twig', [ 'errors' => [$error], ]); echo '
'; $twig->display('account.lost.check-code.html.twig', [ ]); }