From 9dde036f238a94f8e87215ba298b40381f39eef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karlo=20Miku=C5=A1?= Date: Sat, 30 Dec 2023 16:03:28 +0100 Subject: [PATCH] Add email confirm info --- src/components/Auth/AuthRegister.vue | 6 +++++- src/locales/en-US.json | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Auth/AuthRegister.vue b/src/components/Auth/AuthRegister.vue index 71f93f58..970639f3 100644 --- a/src/components/Auth/AuthRegister.vue +++ b/src/components/Auth/AuthRegister.vue @@ -59,7 +59,11 @@ export default { this.isLoading = true ApiRequests.registerNewUser(postData).then(() => { - this.$toast.default(this.$t('register-success')) + if (window.srConfig.MAILS_ENABLED === true) { + this.$toast.default(this.$t('register-success-email')) + } else { + this.$toast.default(this.$t('register-success')) + } this.$router.push('/login') }).catch(e => { this.isLoading = false diff --git a/src/locales/en-US.json b/src/locales/en-US.json index c5d5b58c..0d6f3b55 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -260,6 +260,7 @@ "status-not-available": "Not available", "passwords-not-match": "Passwords do not match", "register-success": "You are now registered, you can now login with your information", + "register-success-email": "You are now registered, check your email for account confirmation", "apply-filters": "Apply filters", "show-less": "Show less", "clear-filters": "Clear all filters",