mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-08-09 20:24:09 +00:00
Merge pull request #1830 from thecashewtrader/register-no-email-note
Add a note if user attempts to register with (apparently) an email
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { isEmail } from "../utils/Misc.js";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -52,6 +54,8 @@ export default {
|
||||
methods: {
|
||||
register() {
|
||||
if (!this.username || !this.password) return;
|
||||
if (isEmail(this.username) && !confirm(this.$t("info.register_no_email_note"))) return;
|
||||
|
||||
this.fetchJson(this.authApiUrl() + "/register", null, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
|
Reference in New Issue
Block a user