From bf37842b5fc214ae92917e6767f73e2f1245c09e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 17 Jun 2026 19:45:26 +0300 Subject: [PATCH 1/2] fix password reset component --- src/api/public.js | 2 +- src/components/password_reset/password_reset.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/public.js b/src/api/public.js index a7e73e165..570e84dff 100644 --- a/src/api/public.js +++ b/src/api/public.js @@ -314,7 +314,7 @@ export const verifyCredentials = ({ credentials }) => credentials, }).then(({ data, ...rest }) => ({ ...rest, data: parseUser(data) })) -export const resetPassword = ({ instance, email }) => { +export const resetPassword = ({ email }) => { return promisedRequest({ url: MASTODON_PASSWORD_RESET_URL({ email }), method: 'POST', diff --git a/src/components/password_reset/password_reset.js b/src/components/password_reset/password_reset.js index 5a54d846b..2f6caafb3 100644 --- a/src/components/password_reset/password_reset.js +++ b/src/components/password_reset/password_reset.js @@ -1,7 +1,7 @@ import { mapState as mapPiniaState } from 'pinia' import { mapState } from 'vuex' -import passwordResetApi from '../../services/new_api/password_reset.js' +import { resetPassword } from 'src/api/public.js' import { useInstanceStore } from 'src/stores/instance.js' @@ -46,7 +46,7 @@ const passwordReset = { const email = this.user.email const server = this.server - passwordResetApi({ server, email }) + resetPassword({ email }) .then(({ status }) => { this.isPending = false this.user.email = '' From 20ff0c00910a2cb67547880bff9dd1fec3b51636 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 17 Jun 2026 19:46:29 +0300 Subject: [PATCH 2/2] add proxy to /auth for dev server --- vite.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vite.config.js b/vite.config.js index 5b7c22d57..f8d3288c8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -80,6 +80,12 @@ export default defineConfig(async ({ mode, command }) => { cookieDomainRewrite: 'localhost', ws: true, }, + '/auth': { // Mastodon password reset lives here + target, + changeOrigin: true, + cookieDomainRewrite: 'localhost', + ws: true, + }, '/nodeinfo': { target, changeOrigin: true,