fix(frontend): displays toast post email verification, closes #672

This commit is contained in:
Dimitrie Stefanescu
2022-04-08 21:14:38 +01:00
parent 0500e04f2c
commit e830e6a5e5
2 changed files with 9 additions and 1 deletions
@@ -141,6 +141,14 @@ export default {
this.$mixpanel.people.set('Identified', true)
}
this.$mixpanel.track('Visit Web App')
if (this.$route.query.emailverfiedstatus) {
setTimeout(() => {
this.$eventHub.$emit('notification', {
text: '✉️ Email succesfully verfied!'
})
}, 1000) // todo: ask fabian if there's a better way, feels icky
}
},
methods: {
switchTheme() {
+1 -1
View File
@@ -55,6 +55,6 @@ module.exports = (app) => {
await Users().where({ email: verification.email }).update({ verified: true })
await Verifications().where({ id: req.query.t }).del()
return res.redirect('/')
return res.redirect('/?emailverfiedstatus=true')
})
}