|
1 |
| -# mysql_auth |
| 1 | +# MySQL Authentication |
2 | 2 |
|
3 | 3 | Plug Minetest's auth mechanism into a MySQL database.
|
4 | 4 |
|
5 |
| -# Configuration |
| 5 | +## Configuration |
6 | 6 |
|
7 | 7 | First, if mod security is enabled (`secure.enable_security = true`), this mod must be added as
|
8 | 8 | a trusted mod (in the `secure.trusted_mods` config entry). There is **no** other solution to
|
9 | 9 | make it work under mod security.
|
10 | 10 |
|
11 |
| -By default `mysql_auth` doesn't run in singleplayer. This can be overriden by setting |
| 11 | +By default, `mysql_auth` doesn't run in singleplayer. This can be overriden by setting |
12 | 12 | `mysql_auth.enable_singleplayer` to `true`.
|
13 | 13 |
|
14 | 14 | Configuration may be done as regular Minetest settings entries, or using a config file, allowing
|
@@ -37,7 +37,7 @@ db.db = nil -- <== Setting this is required
|
37 | 37 | ### Lua table config file
|
38 | 38 |
|
39 | 39 | Connection options are passed as a table through the `db.connopts` entry.
|
40 |
| -Its format must be the same as [LuaPower's MySQL module `mysql.connect(options_t)` function][mycn], |
| 40 | +It's format must be the same as [LuaPower's MySQL module `mysql.connect(options_t)` function][mycn], |
41 | 41 | that is (all members are optional);
|
42 | 42 |
|
43 | 43 | ```lua
|
@@ -113,11 +113,11 @@ mysql_auth.db.db = minetest
|
113 | 113 | mysql_auth.db.tables.auth.name = skyblock_auths
|
114 | 114 | ```
|
115 | 115 |
|
116 |
| -# License |
| 116 | +## License |
117 | 117 |
|
118 |
| -`mysql_auth` is licensed under [LGPLv3](https://www.gnu.org/licenses/lgpl.html). |
| 118 | +`mysql_auth` is licensed under [GNU LGPLv3](https://www.gnu.org/licenses/lgpl.html). |
119 | 119 |
|
120 | 120 | Using the Public Domain-licensed LuaPower `mysql` module.
|
121 | 121 |
|
122 | 122 |
|
123 |
| -[mycn]: https://luapower.com/mysql#mysql.connectoptions_t---conn |
| 123 | +[mycn]: https://luapower.com/mysql#mysql.connectoptions_t---conn |
0 commit comments