mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
This also allows us to generate a password reset link to quickly reset your password without entering the code and email manually.
29 lines
540 B
Vue
29 lines
540 B
Vue
<template>
|
|
<change-password
|
|
:email="email"
|
|
:code="code"
|
|
@passwordResetResponse="handlePasswordResetResponse"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import ChangePassword from '~/components/PasswordReset/ChangePassword'
|
|
|
|
export default {
|
|
data() {
|
|
const { email = '', code = '' } = this.$route.query
|
|
return { email, code }
|
|
},
|
|
components: {
|
|
ChangePassword,
|
|
},
|
|
methods: {
|
|
handlePasswordResetResponse(response) {
|
|
if (response === 'success') {
|
|
this.$router.push('/login')
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|