mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
convert email to lowercase before submitting
This commit is contained in:
parent
53da982d58
commit
3f7a7913c0
@ -68,9 +68,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
submitMessage() {
|
lowercaseEmail() {
|
||||||
const { email } = this.formData
|
const { email } = this.formData
|
||||||
return this.$t('components.password-reset.request.form.submitted', { email })
|
return email.toLowerCase()
|
||||||
|
},
|
||||||
|
submitMessage() {
|
||||||
|
return this.$t('components.password-reset.request.form.submitted', { email: this.lowercaseEmail })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -86,7 +89,7 @@ export default {
|
|||||||
requestPasswordReset(email: $email)
|
requestPasswordReset(email: $email)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
const { email } = this.formData
|
const email = this.lowercaseEmail
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.$apollo.mutate({ mutation, variables: { email } })
|
await this.$apollo.mutate({ mutation, variables: { email } })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user