mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 12:00:10 +08:00
reserving name
This commit is contained in:
parent
8f58c1cfee
commit
873c061bf5
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue