diff options
-rw-r--r-- | libs/core/luasrc/sys.lua | 2 |
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 |