欢迎图片

Changes for page Lua Script

Last modified by Devin Chen on 2025/11/10 16:04

From version 7.3
edited by xingzhi lin
on 2025/10/31 11:01
Change comment: There is no comment for this version
To version 6.3
edited by xingzhi lin
on 2025/10/31 10:52
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -7875,6 +7875,7 @@
7875 7875  
7876 7876  == user_secure.usersecure_addInfo ==
7877 7877  
7878 +
7878 7878  **Prototype : **user_secure.usersecure_addInfo(username,password,supassword,desc,hide,permission)
7879 7879  
7880 7880  **Function: **Add user information
... ... @@ -7881,12 +7881,12 @@
7881 7881  
7882 7882  **Parameters**:
7883 7883  
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
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为无权限
7890 7890  
7891 7891  **Return: **
7892 7892  
... ... @@ -7902,31 +7902,8 @@
7902 7902  
7903 7903  == user_secure.usersecure_deleteInfo ==
7904 7904  
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 -
7926 7926  == user_secure.usersecure_login ==
7927 7927  
7928 -
7929 -
7930 7930  == user_secure.usersecure_logout ==
7931 7931  
7932 7932  == user_secure.usersecure_updatepwd ==