Skip to content

Commit e918e36

Browse files
committed
Fix registration from solid-auth-client not redirecting after login
This is fixed by redirecting directly to the loginUrl, which includes the original query parameters, and includes the original (encoded) redirect URL. Closes nodeSolidServer/solid-auth-client#98
1 parent 0bb707e commit e918e36

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/requests/create-account-request.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,7 @@ class CreateOidcAccountRequest extends CreateAccountRequest {
307307
}
308308

309309
sendResponse (userAccount) {
310-
let redirectUrl = this.returnToUrl ||
311-
this.accountManager.accountUriFor(userAccount.username)
310+
let redirectUrl = this.returnToUrl || this.loginUrl()
312311
this.response.redirect(redirectUrl)
313312

314313
return userAccount

0 commit comments

Comments
 (0)