fix(login): post local credentials to /auth/callback/local not /signin/local
Some checks failed
PR Checks / lint-test-and-docker-build (pull_request) Failing after 1m3s

The Credentials provider in Auth.js processes credentials at the
/callback/:provider endpoint, not /signin/:provider. Posting to
/signin/local hits a code path that just redirects back to the Auth.js
built-in sign-in page. Changing to /callback/local routes the form
submission to the correct handler.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 14:57:54 -05:00
parent 348aac996d
commit 67648a5ba4

View File

@@ -14,7 +14,7 @@ export const load: PageServerLoad = async ({ url }) => {
return { return {
signinUrl: `${authUrl}/signin/synology`, signinUrl: `${authUrl}/signin/synology`,
localSigninUrl: `${authUrl}/signin/local`, localSigninUrl: `${authUrl}/callback/local`,
callbackUrl: appRoot, callbackUrl: appRoot,
localAuthEnabled, localAuthEnabled,
error: resolveErrorMessage(url.searchParams.get('error')) error: resolveErrorMessage(url.searchParams.get('error'))