lint
This commit is contained in:
parent
20ff0c0091
commit
4643669702
1 changed files with 3 additions and 4 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
import { mapState as mapPiniaState } from 'pinia'
|
import { mapState as mapPiniaState } from 'pinia'
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
import { resetPassword } from 'src/api/public.js'
|
|
||||||
|
|
||||||
import { useInstanceStore } from 'src/stores/instance.js'
|
import { useInstanceStore } from 'src/stores/instance.js'
|
||||||
|
|
||||||
|
import { resetPassword } from 'src/api/public.js'
|
||||||
|
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import { faTimes } from '@fortawesome/free-solid-svg-icons'
|
import { faTimes } from '@fortawesome/free-solid-svg-icons'
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ const passwordReset = {
|
||||||
...mapState({
|
...mapState({
|
||||||
signedIn: (state) => !!state.users.currentUser,
|
signedIn: (state) => !!state.users.currentUser,
|
||||||
}),
|
}),
|
||||||
...mapPiniaState(useInstanceStore, ['server', 'mailerEnabled']),
|
...mapPiniaState(useInstanceStore, ['mailerEnabled']),
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.signedIn) {
|
if (this.signedIn) {
|
||||||
|
|
@ -44,7 +44,6 @@ const passwordReset = {
|
||||||
submit() {
|
submit() {
|
||||||
this.isPending = true
|
this.isPending = true
|
||||||
const email = this.user.email
|
const email = this.user.email
|
||||||
const server = this.server
|
|
||||||
|
|
||||||
resetPassword({ email })
|
resetPassword({ email })
|
||||||
.then(({ status }) => {
|
.then(({ status }) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue