mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
SendActivationEmail mutation added to the admin and linked to the resendEmailFunction.
This commit is contained in:
parent
d3105bbbad
commit
0e896ef7d2
@ -20,8 +20,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
// import { verifyLogin } from '../graphql/verifyLogin'
|
import { sendActivationEmail } from '../graphql/sendActivationEmail'
|
||||||
// import { createPendingCreation } from '../graphql/createPendingCreation'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ConfirmRegisterMail',
|
name: 'ConfirmRegisterMail',
|
||||||
props: {
|
props: {
|
||||||
@ -34,8 +34,24 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
sendRegisterMail() {
|
sendRegisterMail() {
|
||||||
// eslint-disable-next-line no-console
|
this.$apollo
|
||||||
console.log('sende wiederholt den ConfirmText an die register E-Mail des User!')
|
.mutate({
|
||||||
|
mutation: sendActivationEmail,
|
||||||
|
variables: {
|
||||||
|
email: this.email,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(
|
||||||
|
'Erfolgreich senden der Confirmation Link an die E-Mail des Users!',
|
||||||
|
this.email,
|
||||||
|
)
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log('Fehler beim senden des confirmation link an den Benutzer', error)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
7
admin/src/graphql/sendActivationEmail.js
Normal file
7
admin/src/graphql/sendActivationEmail.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
|
export const sendActivationEmail = gql`
|
||||||
|
mutation ($email: String!) {
|
||||||
|
sendActivationEmail(email: $email)
|
||||||
|
}
|
||||||
|
`
|
||||||
Loading…
x
Reference in New Issue
Block a user