From 01454544896827113e49db0d2848b5aab6ce14ae Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Wed, 18 Sep 2024 23:05:35 +0200 Subject: Many changes --- src/application/views/form_login.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/application/views/form_login.php') diff --git a/src/application/views/form_login.php b/src/application/views/form_login.php index 1ae20a9..1c4a9ea 100644 --- a/src/application/views/form_login.php +++ b/src/application/views/form_login.php @@ -15,11 +15,12 @@ RequestUtils::clearLastForm(); <div class="col-md-4"></div> <div class="well col-md-4"> <?php -if (($_formError = RequestUtils::getAndClearFormError()) !== null) { +if (($_formError = RequestUtils::getAndClearFormError("login")) !== null) { _view("alert_error", ["message" => $_formError]); } ?> <form action="<?= htmlentities($_SERVER["REQUEST_URI"]) ?>" method="post"> +<input type="hidden" name="form_id" value="login"> <div class="form-group"> <label for="i_username"><?= __("Username:") ?></label> <input class="form-control" type="text" id="i_username" name="username" value="<?= htmlentities($lastForm["username"] ?? "") ?>" required autofocus> @@ -31,7 +32,7 @@ if (($_formError = RequestUtils::getAndClearFormError()) !== null) { </div> <div class="form-group"> - <button class="btn btn-default" type="submit"><?= __("Log in") ?></button> + <button class="btn btn-primary" type="submit"><?= __("Log in") ?></button> </div> <div class="form-group"> -- cgit v1.2.3