mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
feat: 彩虹登录支持选择多种登录方式
This commit is contained in:
@@ -245,7 +245,8 @@ export class LoginService {
|
||||
async loginByOpenId(req: { openId: string, type:string }) {
|
||||
const {openId, type} = req;
|
||||
const oauthBound = await this.oauthBoundService.findOne({
|
||||
where:{openId, type}
|
||||
where:{openId, type: type.replace(':', '')')}
|
||||
});
|
||||
});
|
||||
if (oauthBound == null) {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user