Skip to content

Commit 89168a7

Browse files
committedDec 2, 2015
Document limitations of minetest.get_password_hash
1 parent e51ea66 commit 89168a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎doc/lua_api.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,11 @@ Call these functions only at load time!
19211921
* Should be called by the authentication handler if privileges changes.
19221922
* To report everybody, set `name=nil`.
19231923
* `minetest.get_password_hash(name, raw_password)`
1924-
* Convert a name-password pair to a password hash that Minetest can use
1924+
* Convert a name-password pair to a password hash that Minetest can use.
1925+
* The returned value alone is not a good basis for password checks based
1926+
* on comparing the password hash in the database with the password hash
1927+
* from the function, with an externally provided password, as the hash
1928+
* in the db might use the new SRP verifier format.
19251929
* `minetest.string_to_privs(str)`: returns `{priv1=true,...}`
19261930
* `minetest.privs_to_string(privs)`: returns `"priv1,priv2,..."`
19271931
* Convert between two privilege representations

0 commit comments

Comments
 (0)
Please sign in to comment.