diff options
author | Jonas Kohl | 2024-09-18 23:05:35 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-18 23:05:35 +0200 |
commit | 01454544896827113e49db0d2848b5aab6ce14ae (patch) | |
tree | 9487c3d45a04d350bca2ed8401a797ed69cd7e8a /src/application/views/form_login.php | |
parent | a65d424263adfbff9629c7d91a613e4504c84613 (diff) |
Many changes
Diffstat (limited to 'src/application/views/form_login.php')
-rw-r--r-- | src/application/views/form_login.php | 5 |
1 files changed, 3 insertions, 2 deletions
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"> |