X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FUpsertUser.vue;h=24e3c410ea8d5f90141485fb13fa8c96d01224bf;hp=6fc67742d02b56b8d70c10e9d8e67ff02bac7d0f;hb=0705a80c63aec2c60ee6a674b982f6a11d2d50bd;hpb=504f9ffb037cefa83ce34ef496d8e887d9724155 diff --git a/client/src/components/UpsertUser.vue b/client/src/components/UpsertUser.vue index 6fc67742..24e3c410 100644 --- a/client/src/components/UpsertUser.vue +++ b/client/src/components/UpsertUser.vue @@ -163,7 +163,8 @@ export default { if (this.stage == "Login") { const type = this.nameOrEmail.indexOf("@") >= 0 ? "email" : "name"; error = checkNameEmail({ [type]: this.nameOrEmail }); - } else error = checkNameEmail(this.user); + } + else error = checkNameEmail(this.user); if (error) { alert(this.st.tr[error]); return;