diff --git a/web/app/controllers/login.php b/web/app/controllers/login.php
index 34485fa..da3e244 100644
--- a/web/app/controllers/login.php
+++ b/web/app/controllers/login.php
@@ -5,7 +5,7 @@
if (Auth::check()) {
redirectTo('/');
}
-
+
function handleLoginPost() {
if (!crsf_check()) {
return 'expired';
@@ -51,41 +51,61 @@
}
?>
-
-
+
+
+
+
+
+
+
diff --git a/web/images/sjzez.png b/web/images/sjzez.png
new file mode 100644
index 0000000..284e243
Binary files /dev/null and b/web/images/sjzez.png differ
diff --git a/web/js/uoj.js b/web/js/uoj.js
index fe3774e..fd15d54 100644
--- a/web/js/uoj.js
+++ b/web/js/uoj.js
@@ -168,11 +168,13 @@ $.fn.uoj_honor = function() {
function showErrorHelp(name, err) {
if (err) {
- $('#div-' + name).addClass('has-error');
+ $('#div-' + name).addClass(isBootstrap5Page ? 'has-validation' : 'has-error');
+ if (isBootstrap5Page) $('#div-' + name + ' .form-floating, #input-' + name).addClass('is-invalid');
$('#help-' + name).text(err);
return false;
} else {
- $('#div-' + name).removeClass('has-error');
+ $('#div-' + name).removeClass(isBootstrap5Page ? 'has-validation' : 'has-error');
+ if (isBootstrap5Page) $('#div-' + name+ ' .form-floating, #input-' + name).removeClass('is-invalid');
$('#help-' + name).text('');
return true;
}