mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
批量导入用户功能
This commit is contained in:
1 parent
21347e75d4
commit
37d449d42f
5 files changed
+40
-7
No files matched your search
@@ -173,7 +173,7 @@ export async function inc(_id: number, field: string, n = 1) {
|
||||
|
||||
export async function create(
|
||||
mail: string, uname: string, password: string,
|
||||
uid: number, regip = '127.0.0.1', priv = PRIV.PRIV_DEFAULT,
|
||||
uid?: number, regip = '127.0.0.1', priv = PRIV.PRIV_DEFAULT,
|
||||
) {
|
||||
const salt = String.random();
|
||||
if (!uid) uid = await system.inc('user');
|
||||
|
||||
Reference in new issue
Block a user