Enhance login UX with JS feedback and update docs

Added a new login.js script to provide visual feedback and prevent double submission on the login form. Updated login.html to include the script and wire up the login button. Clarified credential configuration instructions in README.md.
This commit is contained in:
Jon Ander Oribe
2026-01-20 07:07:47 +01:00
parent 14f5375279
commit a0c1766803
3 changed files with 39 additions and 2 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>iNTERCEPT // Restricted Access</title>
<script src="{{ url_for('static', filename='js/core/login.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/index.css') }}" />
<link rel="stylesheet" href="{{ url_for('static', filename='css/login.css') }}" />
</head>
@@ -48,7 +49,7 @@
<input type="text" name="username" placeholder="OPERATOR ID" class="form-input" required autofocus autocomplete="off" />
<input type="password" name="password" placeholder="ENCRYPTION KEY" class="form-input" required />
<button type="submit" class="landing-enter-btn">
<button type="submit" class="landing-enter-btn" onclick="login(event)">
<span class="btn-text">INITIALIZE SESSION</span>
</button>
</form>