Add a note if user attempts to register with (apparently) an email

This commit is contained in:
thecashewtrader
2022-11-28 16:57:35 +05:30
parent abdc80cdbe
commit 74c0795248
2 changed files with 4 additions and 1 deletions

View File

@@ -52,6 +52,8 @@ export default {
methods: {
register() {
if (!this.username || !this.password) return;
if (this.username.includes("@") && !confirm(this.$t("info.register_no_email_note"))) return;
this.fetchJson(this.authApiUrl() + "/register", null, {
method: "POST",
body: JSON.stringify({