aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/auth.lua
AgeCommit message (Collapse)Author
2021-06-30Run on_grant and on_revoke callbacks after privs change (#11387)AFCMS
Callbacks were run too early. This changes the order to call after the privs are updated.
2020-05-23Add on_authplayer callback and 'last_login' to on_joinplayer (#9574)sorcerykid
Replace on_auth_fail callback with more versatile on_authplayer Better clarify account login process in Lua API documentation Change initial timestamp for newly registered accounts to -1
2018-08-05Replace auth.txt with SQLite auth database (#7279)Ben Deutsch
* Replace auth.txt with SQLite auth database
2018-04-19Builtin auth handler: Speed up file writing (#7252)SmallJoker
2017-12-06Auth handler: Player deletion & Iterator (#6741)sfan5
* Add player deletion method to auth handler (fixes #6653) * Support iterating over the auth database There was no way to do this previously and a recent commit broke doing this the "hacky" way by accessing `core.auth_table`.
2017-12-01Make core.auth_table private and structure builtin/auth.luasfan5
If you give modders the ability to do something, they will...
2017-11-08Make use of safe file writing in auth handler (fixes #6576)sfan5
2017-10-07Do not grant all privs to the admin - changes game behavior (#6460)lhofhansl
* Do not grant all privs to admins. * Default give_to_admin to give_to_singleplayer
2017-08-26Add on_grant and on_revoke callbacks (#4713)rubenwardy
* Add register_on_priv_grant/revoke, and on_grant/revoke to privs. Call from /grant and /revoke * Call on_grant and on_revoke callbacks from set_privs
2017-06-07[CSM] Add function to get player privileges (#5933)red-001
* [CSM] Add function to get player privileges + move related help functions to common * Added @Zeno- const
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
2016-08-29Builtin: Disallow registering users with the same nameSmallJoker
Prevents duplicate names: 'NickName', 'nickname', 'NICKNAME'. Skips already registered users, so they can connect as usual.
2016-03-06Faster insertion into tableRui914
2015-08-12SAPI: Track last executed mod and include in error messageskwolekr
2014-11-19Add strict moduleShadowNinja
Also fix leaking globals found by it.
2014-11-08Add last_login field to auth.txtRyan Newell
Also shortens some related code and adds more parameters to string.split.
2014-05-08Use "core" namespace internallyShadowNinja
2014-05-07Organize builtin into subdirectoriesShadowNinja