Separate client and server codes. Keep everything in one git repo for simplicity
[vchess.git] / client / client_OLD / javascripts / components / upsertUser.js
@@ -139,6 +139,9 @@ vv = Vue.component('my-upsert-user', {
                                                this.nameOrEmail = "";
                                                this.user["email"] = "";
                                                this.user["name"] = "";
+                                               // Store our identifiers in local storage (by little anticipation...)
+                                               localStorage["myid"] = res.id;
+                                               localStorage["myname"] = res.name;
                                        }
                                        setTimeout(() => {
                                                this.infoMsg = "";