Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

VerifyView.vue 1004B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template lang="pug">
  2. .wait-message
  3. p.verify-message Thanks for authenticating your email {{ name }}!
  4. p.verify-message Please give us a moment to redirect you back to the survey
  5. </template>
  6. <script>
  7. import { Authenticator } from '../services/auth.service.js'
  8. export default {
  9. name: 'VerifyView',
  10. emits: ['resume-survey'],
  11. data: () => ({
  12. authenticator: {},
  13. }),
  14. created() {
  15. this.authenticator = new Authenticator()
  16. const hashEmail = this.$route.params.email
  17. const hashesMatch = this.authenticator.verifyAuthEmail(hashEmail)
  18. if (hashesMatch) {
  19. // this.$router.push(`/onboarding/${hashEmail}`)
  20. this.$emit('resume-survey')
  21. }
  22. // else {
  23. // render ERROR message above or redirect to 404 (or both?)
  24. // }
  25. },
  26. }
  27. </script>
  28. <style>
  29. .wait-message {
  30. margin: 5rem auto;
  31. text-align: center;
  32. width: 90%;
  33. max-width: 35rem;
  34. font-size: 150%;
  35. font-weight: bold;
  36. }
  37. </style>