mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
+login-with-qq
This commit is contained in:
1 parent
09ced5cdff
commit
ac9dc00c6a
12 files changed
+133
-3
No files matched your search
@@ -2,7 +2,7 @@ import { Collection } from 'mongodb';
|
||||
import { TokenDoc } from '../interface';
|
||||
import * as db from '../service/db';
|
||||
|
||||
const coll: Collection<TokenDoc> = db.collection('token');
|
||||
export const coll: Collection<TokenDoc> = db.collection('token');
|
||||
|
||||
export const TYPE_SESSION = 0;
|
||||
export const TYPE_REGISTRATION = 2;
|
||||
@@ -88,6 +88,8 @@ export function delByUid(uid: number) {
|
||||
|
||||
global.Hydro.postInit.push(ensureIndexes);
|
||||
global.Hydro.model.token = {
|
||||
coll,
|
||||
|
||||
TYPE_SESSION,
|
||||
TYPE_CHANGEMAIL,
|
||||
TYPE_OAUTH,
|
||||
|
||||
Reference in new issue
Block a user