summaryrefslogtreecommitdiffhomepage
path: root/libs/core
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-28 21:18:28 +0000
committerSteven Barth <steven@midlink.org>2008-06-28 21:18:28 +0000
commitc7b5b23f878bfa187932d1d7f79460708934cd0b (patch)
treeaa6582d5e8410a5396f0d34e3cf8a799ad523e61 /libs/core
parentffd74bcc09d1e5abf1732e83a6d1e7d9155183d7 (diff)
* lib/core: Fixed wrong argument order for luci.user.checkpasswd
Diffstat (limited to 'libs/core')
-rw-r--r--libs/core/luasrc/sys.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/sys.lua b/libs/core/luasrc/sys.lua
index 540a636fb8..c5c471a75f 100644
--- a/libs/core/luasrc/sys.lua
+++ b/libs/core/luasrc/sys.lua
@@ -295,7 +295,7 @@ function user.checkpasswd(username, password)
if account.passwd == "!" then
return true
else
- return (account.passwd == posix.crypt(account.passwd, password))
+ return (account.passwd == posix.crypt(password, account.passwd))
end
end
end