mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
convert email to lowercase before submitting
This commit is contained in:
parent
53da982d58
commit
3f7a7913c0
@ -68,9 +68,12 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
submitMessage() {
|
||||
lowercaseEmail() {
|
||||
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: {
|
||||
@ -86,7 +89,7 @@ export default {
|
||||
requestPasswordReset(email: $email)
|
||||
}
|
||||
`
|
||||
const { email } = this.formData
|
||||
const email = this.lowercaseEmail
|
||||
|
||||
try {
|
||||
await this.$apollo.mutate({ mutation, variables: { email } })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user