Update sPhone.lua

This commit is contained in:
Ale32bit 2016-11-09 21:25:27 +01:00 committed by GitHub
parent d64154e4d0
commit 2aab3c0f2b

View file

@ -1158,6 +1158,9 @@ end
end end
function login() function login()
if config.read("/.sPhone/config/sPhone","lockEnabled") == nil then
config.write("/.sPhone/config/sPhone","lockEnabled",true)
end
local usingPW = config.read("/.sPhone/config/sPhone","lockEnabled") local usingPW = config.read("/.sPhone/config/sPhone","lockEnabled")
if not usingPW then if not usingPW then
return return