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
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:
@@ -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'))
|
||||||
|
|||||||
Reference in New Issue
Block a user