summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2018-02-15 20:18:54 +0000
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-02-15 21:18:54 +0100
commit338d645fcfa1f07a82c4940aa09a6fb265ff608f (patch)
treec2665c7108e84f677fc20ae2f8d90984fcd8532f /doc
parent861cfd848473db6c36b0debb7152d98ca8017062 (diff)
downloadminetest-338d645fcfa1f07a82c4940aa09a6fb265ff608f.tar.gz
minetest-338d645fcfa1f07a82c4940aa09a6fb265ff608f.tar.bz2
minetest-338d645fcfa1f07a82c4940aa09a6fb265ff608f.zip
Add `on_auth_fail` callback (#7039)
Called when a client fails to supply the correct password for the account it's attempting to login as.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 5baa098e2..522740d77 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2615,6 +2615,10 @@ Call these functions only at load time!
* `minetest.register_on_leaveplayer(func(ObjectRef, timed_out))`
* Called when a player leaves the game
* `timed_out`: True for timeout, false for other reasons.
+* `minetest.register_on_auth_fail(func(name, ip))`
+ * Called when a client attempts to log into an account but supplies the wrong password.
+ * `ip`: The IP address of the client.
+ * `name`: The account the client attempted to log into.
* `minetest.register_on_cheat(func(ObjectRef, cheat))`
* Called when a player cheats
* `cheat`: `{type=<cheat_type>}`, where `<cheat_type>` is one of: