summaryrefslogtreecommitdiffhomepage
path: root/libs/sys/luasrc/sys.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-10 12:58:05 +0000
committerSteven Barth <steven@midlink.org>2008-08-10 12:58:05 +0000
commitf9fa6d82da4f15473a49822d6d9dfda34144b85e (patch)
treeb5a1593155a67919118e2201c244d239a87ba31f /libs/sys/luasrc/sys.lua
parent2787a7f68896663647e19a1387195ae18db7d37a (diff)
* libs/web: Reworked authentication
Diffstat (limited to 'libs/sys/luasrc/sys.lua')
-rw-r--r--libs/sys/luasrc/sys.lua5
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