From: Steven Barth Date: Sat, 28 Jun 2008 21:18:28 +0000 (+0000) Subject: * lib/core: Fixed wrong argument order for luci.user.checkpasswd X-Git-Tag: 0.8.0~748 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=c7b5b23f878bfa187932d1d7f79460708934cd0b * lib/core: Fixed wrong argument order for luci.user.checkpasswd --- diff --git a/libs/core/luasrc/sys.lua b/libs/core/luasrc/sys.lua index 540a636fb..c5c471a75 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