mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 11:46:23 +00:00
Allow an email to be passed to forgot-password page (#15436)
This commit is contained in:
parent
1884c6c751
commit
29892ff5e3
1 changed files with 5 additions and 1 deletions
|
|
@ -726,7 +726,11 @@ export default {
|
|||
},
|
||||
mounted () {
|
||||
this.forgotPassword = this.$route.path.startsWith('/forgot-password');
|
||||
|
||||
if (this.forgotPassword) {
|
||||
if (this.$route.query.email) {
|
||||
this.username = this.$route.query.email;
|
||||
}
|
||||
}
|
||||
hello.init({
|
||||
google: process.env.GOOGLE_CLIENT_ID, // eslint-disable-line
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue