diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-30 18:42:18 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-30 18:42:18 +0300 |
commit | 7cad0a2dcd817b179f82066964c45937a603d138 (patch) | |
tree | f97c0ea3d9ccc5b67688fa1110b972c610a65430 /src/scriptapi.h | |
parent | ed1ff06867e84f197330b45168c6ebcba672e532 (diff) | |
download | minetest-7cad0a2dcd817b179f82066964c45937a603d138.tar.gz minetest-7cad0a2dcd817b179f82066964c45937a603d138.tar.bz2 minetest-7cad0a2dcd817b179f82066964c45937a603d138.zip |
Reimplement authentication handler in Lua; now we have 1) infinite privilege names, 2) minetest.register_authentication_handler()
Diffstat (limited to 'src/scriptapi.h')
-rw-r--r-- | src/scriptapi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scriptapi.h b/src/scriptapi.h index b80039f9e..fe8b26e04 100644 --- a/src/scriptapi.h +++ b/src/scriptapi.h @@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes.h" #include <string> #include "mapnode.h" +#include <set> class Server; class ServerEnvironment; @@ -60,6 +61,12 @@ bool scriptapi_on_respawnplayer(lua_State *L, ServerActiveObject *player); void scriptapi_on_joinplayer(lua_State *L, ServerActiveObject *player); void scriptapi_on_leaveplayer(lua_State *L, ServerActiveObject *player); void scriptapi_get_creative_inventory(lua_State *L, ServerActiveObject *player); +bool scriptapi_get_auth(lua_State *L, const std::string &playername, + std::string *dst_password, std::set<std::string> *dst_privs); +void scriptapi_create_auth(lua_State *L, const std::string &playername, + const std::string &password); +bool scriptapi_set_password(lua_State *L, const std::string &playername, + const std::string &password); /* item callbacks */ bool scriptapi_item_on_drop(lua_State *L, ItemStack &item, |