- Fixed bug on login button
This commit is contained in:
Kum1ta
2024-08-10 18:01:59 +02:00
parent 9bc7bc7af5
commit 657dffc0c1
9 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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 };