Site
- Fixed bug on login button
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/08/10 15:08:44 by edbernar ### ########.fr */
|
||||
/* Updated: 2024/08/10 17:57:45 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -22,6 +22,7 @@ function login()
|
||||
let nodeText = null;
|
||||
|
||||
waitForLogin().then((token) => {
|
||||
console.log("login.js: userMeInfo.id = " + userMeInfo.id);
|
||||
nodeText = document.createTextNode(userMeInfo.username);
|
||||
|
||||
if (token !== undefined)
|
||||
|
@ -6,16 +6,18 @@
|
||||
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/08/10 16:01:51 by edbernar #+# #+# */
|
||||
/* Updated: 2024/08/10 16:07:06 by edbernar ### ########.fr */
|
||||
/* Updated: 2024/08/10 18:01:08 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
import { createNotification as CN } from "../notification/main.js";
|
||||
import { typeLogin } from "../typeResponse/typeLogin.js";
|
||||
|
||||
function typeErrorUnknown42Account()
|
||||
{
|
||||
window.history.replaceState({}, document.title, "/site/");
|
||||
CN.new("Unknown 42 account", "Your 42 account is not linked to any account.");
|
||||
typeLogin(null);
|
||||
}
|
||||
|
||||
export { typeErrorUnknown42Account };
|
Reference in New Issue
Block a user