Skip to content

Commit

Permalink
Add email confirm info
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed Dec 30, 2023
1 parent 17b68cb commit 9dde036
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Auth/AuthRegister.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9dde036

Please sign in to comment.