mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
set remembered password upon registration
This commit is contained in:
parent
ea24973f0d
commit
587acbaa5d
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ local function register_buttonhandler(this, fields)
|
|||
core.settings:set("name", fields.name)
|
||||
core.settings:set("address", gamedata.address)
|
||||
core.settings:set("remote_port", gamedata.port)
|
||||
if core.settings:get_bool("remember_password") then
|
||||
core.settings:set("password", fields.password)
|
||||
end
|
||||
|
||||
core.start()
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue