reserving name

This commit is contained in:
Jack 2020-10-26 19:49:36 +00:00
parent 8f58c1cfee
commit 873c061bf5

View file

@ -142,13 +142,15 @@ function signUp() {
.updateProfile({
displayName: nname,
})
.then(function () {
.then(async function () {
// Update successful.
firebase
await firebase
.firestore()
.collection("users")
.doc(usr.uid)
.set({ name: nname }, { merge: true });
reserveName({ name: nname, uid: usr.uid });
usr.sendEmailVerification();
clearGlobalStats();
showNotification("Account created", 2000);