mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-10 10:18:23 +00:00
Add a note if user attempts to register with (apparently) an email
This commit is contained in:
parent
abdc80cdbe
commit
74c0795248
@ -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({
|
||||
|
@ -168,6 +168,7 @@
|
||||
"page_not_found": "Page not found",
|
||||
"copied": "Copied!",
|
||||
"cannot_copy": "Can't copy!",
|
||||
"local_storage": "This action requires localStorage, are cookies enabled?"
|
||||
"local_storage": "This action requires localStorage, are cookies enabled?",
|
||||
"register_no_email_note": "Piped has detected that you are using an email as username to register. Providing an email is not required to register on Piped. If you still want to continue, press OK."
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user