fixed centering issue with radius.
Signed-off-by: boris <boris@borishub.co.uk>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user