admin: fix js on login page
This commit is contained in:
parent
b9b27b7ed2
commit
3170574dce
@ -9,7 +9,7 @@ use Stringable;
|
||||
|
||||
function login($ctx) {
|
||||
$html = <<<HTML
|
||||
<form action="/admin/login/" method="post" class="form-layout-h">
|
||||
<form action="/admin/login/" method="post" class="form-layout-h" name="admin_login">
|
||||
<input type="hidden" name="token" value="{$ctx->csrf('adminlogin')}" />
|
||||
|
||||
<div class="form-field-wrap clearfix">
|
||||
@ -36,7 +36,7 @@ $html = <<<HTML
|
||||
HTML;
|
||||
|
||||
$js = <<<JS
|
||||
ge('as_password').focus();
|
||||
document.forms.admin_login.login.focus();
|
||||
JS;
|
||||
|
||||
return [$html, $js];
|
||||
|
Loading…
x
Reference in New Issue
Block a user