encode redirect uri
This commit is contained in:
parent
3ca815690e
commit
4b4cd88698
@ -84,7 +84,7 @@ export class LoginController {
|
||||
const encrypted = await this.token.encryptChallenge(challenge);
|
||||
res.redirect(
|
||||
`login/verify?challenge=${encrypted}${
|
||||
redirectTo ? '&redirectTo=' + redirectTo : ''
|
||||
redirectTo ? '&redirectTo=' + encodeURIComponent(redirectTo) : ''
|
||||
}`,
|
||||
);
|
||||
return;
|
||||
@ -114,7 +114,10 @@ export class LoginController {
|
||||
});
|
||||
|
||||
res.redirect(
|
||||
'/login' + (query.redirectTo ? '?redirectTo=' + query.redirectTo : ''),
|
||||
'/login' +
|
||||
(query.redirectTo
|
||||
? '?redirectTo=' + encodeURIComponent(query.redirectTo)
|
||||
: ''),
|
||||
);
|
||||
return;
|
||||
}
|
||||
@ -156,7 +159,10 @@ export class LoginController {
|
||||
});
|
||||
|
||||
res.redirect(
|
||||
'/login' + (query.redirectTo ? '?redirectTo=' + query.redirectTo : ''),
|
||||
'/login' +
|
||||
(query.redirectTo
|
||||
? '?redirectTo=' + encodeURIComponent(query.redirectTo)
|
||||
: ''),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user