- this.user["email"] = "";
- this.user["name"] = "";
-
- debugger; //TODO: 2 passages ici au lieu d'1 lors du register
-
- // Store our identifiers in local storage (by little anticipation...)
- localStorage["myid"] = res.id;
- localStorage["myname"] = res.name;
- // Also in global object
- this.st.user.id = res.id;
- this.st.user.name = res.name;
- }
- setTimeout(() => {
- this.infoMsg = "";
- if (this.stage == "Register")
- this.stage = "Login";
- document.getElementById("modalUser").checked = false;
- }, 2000);