diff options
author | Steven Barth <steven@midlink.org> | 2008-08-10 12:58:05 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-10 12:58:05 +0000 |
commit | f9fa6d82da4f15473a49822d6d9dfda34144b85e (patch) | |
tree | b5a1593155a67919118e2201c244d239a87ba31f /libs/sys/luasrc/sys.lua | |
parent | 2787a7f68896663647e19a1387195ae18db7d37a (diff) |
* libs/web: Reworked authentication
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r-- | libs/sys/luasrc/sys.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/sys/luasrc/sys.lua b/libs/sys/luasrc/sys.lua index b8ec10e0f4..56beafe944 100644 --- a/libs/sys/luasrc/sys.lua +++ b/libs/sys/luasrc/sys.lua @@ -295,10 +295,7 @@ user.getuser = posix.getpasswd function user.checkpasswd(username, password) local account = user.getuser(username) - -- FIXME: detect testing environment - if luci.fs.stat("/etc/shadow") and not luci.fs.access("/etc/shadow", "r") then - return true - elseif account then + if account then if account.passwd == "!" then return true else |