mirror of
https://github.com/certd/certd.git
synced 2026-05-17 13:57:31 +08:00
fix: 修复第三方登录彩虹登录不上的bug
This commit is contained in:
@@ -112,7 +112,10 @@ export class ConnectController extends BaseController {
|
||||
userInfo,
|
||||
});
|
||||
|
||||
const state = JSON.parse(utils.hash.base64Decode(query.state));
|
||||
let state = {forType:""}
|
||||
if (query.state) {
|
||||
state = JSON.parse(utils.hash.base64Decode(query.state));
|
||||
}
|
||||
|
||||
const redirectUrl = `${bindUrl}#/oauth/callback/${type}?validationCode=${validationCode}&forType=${state.forType}`;
|
||||
this.ctx.redirect(redirectUrl);
|
||||
|
||||
Reference in New Issue
Block a user