fixed centering issue with radius.

Signed-off-by: boris <boris@borishub.co.uk>
This commit is contained in:
boris
2025-04-22 01:17:48 +01:00
parent 183cca3fd3
commit d027e01ccc
12 changed files with 85 additions and 215 deletions

View File

@@ -79,7 +79,7 @@
// Function to update CAPTCHA display
async function updateCaptcha() {
try {
const captcha = await simpleAuth.generateCaptcha();
const captcha = await auth.generateCaptcha();
captchaDisplay.textContent = captcha;
document.getElementById('captchaCode').value = captcha;
} catch (error) {
@@ -93,7 +93,7 @@
}
// Show/hide CAPTCHA based on login attempts
if (simpleAuth.needsCaptcha()) {
if (auth.needsCaptcha()) {
captchaContainer.style.display = 'block';
updateCaptcha();
}
@@ -107,7 +107,7 @@
const password = document.getElementById('password').value;
const captchaInput = document.getElementById('captchaInput')?.value;
const result = await simpleAuth.login({
const result = await auth.login({
username,
password,
captchaInput