mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix user_register
This commit is contained in:
1 parent
52fcfdb665
commit
2b52930e9a
2 files changed
+2
-2
No files matched your search
@@ -229,7 +229,7 @@ class UserModel {
|
||||
@ArgMethod
|
||||
static async create(
|
||||
mail: string, uname: string, password: string,
|
||||
uid: number = 0, regip: string = '127.0.0.1', priv: number = system.get('default.priv'),
|
||||
uid?: number, regip: string = '127.0.0.1', priv: number = system.get('default.priv'),
|
||||
) {
|
||||
const salt = String.random();
|
||||
if (typeof uid !== 'number') {
|
||||
|
||||
Reference in new issue
Block a user