+login-with-qq

This commit is contained in:
undefined committed 2020-08-12 00:31:59 +08:00
1 parent 09ced5cdff
commit ac9dc00c6a
12 files changed
+133 -3

No files matched your search

+1 -1
View File
@@ -225,7 +225,7 @@ class OauthHandler extends Handler {
class OauthCallbackHandler extends Handler {
async get(args: any) {
let r;
if (global.Hydro.lib[`oauth_${args.type}`]) r = await global.Hydro.lib[`oauth_${args.type}`].callback(args);
if (global.Hydro.lib[`oauth_${args.type}`]) r = await global.Hydro.lib[`oauth_${args.type}`].callback.call(this, args);
else throw new UserFacingError('Oauth type');
const udoc = await user.getByEmail('system', r.email);
if (udoc) {