mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Admin fixes
-login/logout error fix -debugging code removed
This commit is contained in:
parent
9e0ad271f6
commit
cddd915adf
@ -9,18 +9,9 @@
|
|||||||
*/
|
*/
|
||||||
defined('MYAAC') or die('Direct access not allowed!');
|
defined('MYAAC') or die('Direct access not allowed!');
|
||||||
$title = 'Login';
|
$title = 'Login';
|
||||||
$logout = '';
|
|
||||||
if ($action == 'logout') {
|
|
||||||
$logout = "You have been logged out!";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($errors)) {
|
|
||||||
foreach ($errors as $error) {
|
|
||||||
error($error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$twig->display('admin.login.html.twig', array(
|
$twig->display('admin.login.html.twig', array(
|
||||||
'logout' => $logout,
|
'logout' => ($action == 'logout' ? 'You have been logged out!' : ''),
|
||||||
'account' => USE_ACCOUNT_NAME ? 'Name' : 'Number',
|
'account' => USE_ACCOUNT_NAME ? 'Name' : 'Number',
|
||||||
));
|
'errors' => isset($errors)? $errors : ''
|
||||||
|
));
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
<div class="login-page">
|
<div class="login-page">
|
||||||
<div class="login-box">
|
<div class="login-box">
|
||||||
<div class="login-logo"><b>My</b>AAC</div>
|
<div class="login-logo"><b>My</b>AAC</div>
|
||||||
|
{% if errors %}
|
||||||
|
<div class="alert alert-danger"><strong>Errors:</strong><br/>
|
||||||
|
{% for error in errors %}
|
||||||
|
<li>{{ error|raw }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% if logout %}
|
{% if logout %}
|
||||||
<div class="toast bg-success fade show">
|
<div class="alert alert-success"><strong>Status:</strong><br/>
|
||||||
<div class="toast-header"><strong class="mr-auto">Status</strong></div>
|
{{ logout }}
|
||||||
<div class="toast-body">{{ logout }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -44,4 +50,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
3
tools/css/adminlte.min.css
vendored
3
tools/css/adminlte.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
tools/js/adminlte.min.js
vendored
3
tools/js/adminlte.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
3
tools/js/bootstrap.bundle.min.js
vendored
3
tools/js/bootstrap.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user