feat: Show "Invalid username was provided" error on login page

This commit is contained in:
Kerby Martino (aider) committed 2025-05-04 20:39:13 +08:00
1 parent caf73dbdab
commit 134b61d615
1 file changed
+2 -2
+2 -2
View File
@@ -34,8 +34,8 @@
<input type="password" id="password" name="password" placeholder="Enter your password" class="w-full text-primary text-base px-3 py-2 bg-transparent border-b-2 border-gray-300 focus:outline-none focus:border-primary transition duration-150 ease-in-out placeholder:text-xs" required>
</div>
<!-- Error message with improved presentation -->
<div class="bg-red-50 border border-red-200 rounded-md p-3 hidden">
<p class="text-sm text-red-500 text-center">Bad Login</p>
<div class="bg-red-50 border border-red-200 rounded-md p-3 hidden" id="login-error">
<p class="text-sm text-red-500 text-center">Invalid username was provided</p>
</div>
<div class="pt-2">
<button type="submit" class="w-full px-6 py-3 bg-primary text-white text-base font-medium rounded-md hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition duration-150 ease-in-out font-monda font-action">Login</button>