[-] BO : Remove warning at login template
This commit is contained in:
@@ -102,9 +102,9 @@
|
|||||||
<p>{l s='For security reasons, you cannot connect to the Back Office until after you have:'}</p>
|
<p>{l s='For security reasons, you cannot connect to the Back Office until after you have:'}</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>{l s='deleted the /install folder'}</li>
|
<li>{l s='deleted the /install folder'}</li>
|
||||||
<li>{l s='renamed the /admin folder (e.g. /admin123%d)' sprintf=$randomNb}</li>
|
<li>{l s='renamed the /admin folder (e.g. /admin%d)' sprintf=$randomNb}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>{l s='Please then access this page by the new URL (e.g. http://www.yoursite.com/admin123%d)' sprintf=$randomNb}</p>
|
<p>{l s='Please then access this page by the new URL (e.g. http://www.yoursite.com/admin%d)' sprintf=$randomNb}</p>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -77,10 +77,12 @@ class AdminLoginControllerCore extends AdminController
|
|||||||
Tools::redirectAdmin('../admin'.$rand);
|
Tools::redirectAdmin('../admin'.$rand);
|
||||||
else
|
else
|
||||||
$this->context->smarty->assign(array(
|
$this->context->smarty->assign(array(
|
||||||
'randomNb' => rand(100, 999),
|
|
||||||
'wrong_folder_name' => true
|
'wrong_folder_name' => true
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
$this->context->smarty->assign(array(
|
||||||
|
'randomNb' => rand(0, 9999)
|
||||||
|
));
|
||||||
|
|
||||||
// Redirect to admin panel
|
// Redirect to admin panel
|
||||||
if (Tools::isSubmit('redirect') && Validate::isControllerName(Tools::getValue('redirect')))
|
if (Tools::isSubmit('redirect') && Validate::isControllerName(Tools::getValue('redirect')))
|
||||||
|
|||||||
Reference in New Issue
Block a user