Fix sign in and sign up switch link

This commit is contained in:
2025-08-05 20:42:47 +10:00
parent d0de0c420c
commit d90829974d
-6
View File
@@ -533,21 +533,15 @@
function toggleSignUpMode() {
isSignUpMode = !isSignUpMode;
const authTitle = document.getElementById('authTitle');
const authSubmitBtn = document.getElementById('authSubmitBtn');
const toggleModeBtn = document.getElementById('toggleModeBtn');
const authDescription = document.querySelector('#authPanel article header p');
if (isSignUpMode) {
authTitle.textContent = 'Create your account';
authSubmitBtn.textContent = 'Create account with passkey';
toggleModeBtn.textContent = 'Already have an account? Sign in';
authDescription.textContent = 'Create a new account with secure passkey authentication';
} else {
authTitle.textContent = 'Sign in to your account';
authSubmitBtn.textContent = 'Sign in with passkey';
toggleModeBtn.textContent = "Don't have an account? Create one";
authDescription.textContent = 'Use your passkey for secure authentication';
}
}