summaryrefslogtreecommitdiff
path: root/src/application/views/form_login.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/views/form_login.php')
-rw-r--r--src/application/views/form_login.php5
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">