Changes for page Lua Script
Last modified by Devin Chen on 2025/11/10 16:04
From version 7.1
edited by xingzhi lin
on 2025/10/31 10:52
on 2025/10/31 10:52
Change comment:
There is no comment for this version
To version 7.3
edited by xingzhi lin
on 2025/10/31 11:01
on 2025/10/31 11:01
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -7875,7 +7875,6 @@ 7875 7875 7876 7876 == user_secure.usersecure_addInfo == 7877 7877 7878 - 7879 7879 **Prototype : **user_secure.usersecure_addInfo(username,password,supassword,desc,hide,permission) 7880 7880 7881 7881 **Function: **Add user information ... ... @@ -7882,12 +7882,12 @@ 7882 7882 7883 7883 **Parameters**: 7884 7884 7885 -* username(string): 新增用户名(长度16位)7886 -* password(string): 密码(长度8位)7887 -* supassword(string): 确认密码(长度8位)7888 -* desc(string) :描述,(长度10位)7889 -* hide(bool): 控制隐藏,true:权限不足时隐藏7890 -* permission(table): 权限,1为拥有权限,0为无权限7884 +* username(string): New username (16 characters) 7885 +* password(string): Password (8 characters) 7886 +* supassword(string): Confirm password (8 characters) 7887 +* desc(string): Description (10 characters) 7888 +* hide(bool): Controls hiding; true: hide if insufficient permissions 7889 +* permission(table): Permissions; 1 for granted permissions, 0 for no permissions 7891 7891 7892 7892 **Return: ** 7893 7893 ... ... @@ -7903,8 +7903,31 @@ 7903 7903 7904 7904 == user_secure.usersecure_deleteInfo == 7905 7905 7905 + 7906 +**Prototype : **user_secure.usersecure_deleteInfo(username) 7907 + 7908 +**Function: **Delete user information 7909 + 7910 +**Parameters**: 7911 + 7912 +* username 7913 + 7914 +**Return: ** 7915 + 7916 +* Failure: Returns nil 7917 + 7918 +**Example** 7919 + 7920 +{{code language="LUA"}} 7921 +ret, msg = user_secure.usersecure_deleteInfo("user1") 7922 +{{/code}} 7923 + 7924 +== user_secure.usersecure_updatepermission == 7925 + 7906 7906 == user_secure.usersecure_login == 7907 7907 7928 + 7929 + 7908 7908 == user_secure.usersecure_logout == 7909 7909 7910 7910 == user_secure.usersecure_updatepwd ==