mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Changed the name of the used query.
This commit is contained in:
parent
8c6ea5aa12
commit
5300bc8e1a
@ -38,7 +38,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { sendEmail } from '../../graphql/queries'
|
||||
import { sendResetPasswordEmail } from '../../graphql/queries'
|
||||
import InputEmail from '../../components/Inputs/InputEmail'
|
||||
|
||||
export default {
|
||||
@ -58,13 +58,17 @@ export default {
|
||||
async onSubmit() {
|
||||
this.$apollo
|
||||
.query({
|
||||
query: sendEmail,
|
||||
query: sendResetPasswordEmail,
|
||||
variables: {
|
||||
email: this.form.email,
|
||||
},
|
||||
})
|
||||
.then(() => this.$router.push('/thx/password'))
|
||||
.catch(() => this.$router.push('/thx/password'))
|
||||
.then((result) => {
|
||||
this.$router.push('/thx/password')
|
||||
})
|
||||
.catch((error) => {
|
||||
this.$router.push('/thx/password')
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user