fix(frontend): displays toast post email verification, closes #672
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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')
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user