Software /
code /
prosody
Comparison
teal-src/core/usermanager.d.tl @ 12905:8473a516004f
core.usermanager: Add methods for enabling and disabling users
Calling into the auth module, where available.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 23 Feb 2023 16:24:41 +0100 |
parent | 12904:4c321d889fdc |
comparison
equal
deleted
inserted
replaced
12904:4c321d889fdc | 12905:8473a516004f |
---|---|
16 set_password : function (username : string, host : string, password : string) : boolean, string | 16 set_password : function (username : string, host : string, password : string) : boolean, string |
17 get_account_info : function (username : string, host : string) : AccountInfo | 17 get_account_info : function (username : string, host : string) : AccountInfo |
18 user_exists : function (username : string, host : string) : boolean | 18 user_exists : function (username : string, host : string) : boolean |
19 create_user : function (username : string, password : string, host : string) : boolean, string | 19 create_user : function (username : string, password : string, host : string) : boolean, string |
20 delete_user : function (username : string, host : string) : boolean, string | 20 delete_user : function (username : string, host : string) : boolean, string |
21 user_is_enabled : function (username : string, host : string) : boolean, string | |
22 enable_user : function (username : string, host : string) : boolean, string | |
23 disable_user : function (username : string, host : string) : boolean, string | |
21 users : function (host : string) : function () : string | 24 users : function (host : string) : function () : string |
22 | 25 |
23 -- Roles | 26 -- Roles |
24 get_user_role : function (username : string, host : string) : Role | 27 get_user_role : function (username : string, host : string) : Role |
25 set_user_role : function (username : string, host : string, role_name : string) : boolean, string | 28 set_user_role : function (username : string, host : string, role_name : string) : boolean, string |