Site
- fix login with 42
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/08/07 17:40:15 by edbernar #+# #+# */
|
||||
/* Updated: 2024/09/12 01:35:44 by edbernar ### ########.fr */
|
||||
/* Updated: 2024/09/12 12:58:13 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -26,7 +26,6 @@ class Login
|
||||
const button42 = document.getElementsByClassName('login-42-btn')[0];
|
||||
const registerForm = document.getElementById('registerForm');
|
||||
const loginBackButton = document.getElementsByClassName('old-player')[0];
|
||||
const popMenuLoginButton = document.getElementById('popMenuLoginButton');
|
||||
|
||||
registerButton.addEventListener('click', changeWindowLogin);
|
||||
loginBackButton.addEventListener('click', changeWindowLoginBack);
|
||||
@ -100,13 +99,14 @@ function hideMenu()
|
||||
popMenuLoginButton.style.display = 'none';
|
||||
document.removeEventListener('click', hideMenu);
|
||||
loginButton.addEventListener('click', showMenu);
|
||||
console.log("ehh2");
|
||||
}
|
||||
|
||||
function redirection(e)
|
||||
{
|
||||
const button42 = document.getElementsByClassName('login-42-btn')[0];
|
||||
|
||||
e.preventDefault();
|
||||
window.location.replace('https://api.intra.42.fr/oauth/authorize?client_id=u-s4t2ud-d9d6d46bd0be36dc13718981df4bfcf37e574ea364a07fcb5c39658be0f5706c&redirect_uri=https://localhost:8000/login42&response_type=code&scope=public');
|
||||
window.location.replace(button42.getAttribute('href'));
|
||||
}
|
||||
|
||||
function createAccount(e)
|
||||
|
Reference in New Issue
Block a user