* lib/core: Fixed wrong argument order for luci.user.checkpasswd

This commit is contained in:
Steven Barth 2008-06-28 21:18:28 +00:00
parent ffd74bcc09
commit c7b5b23f87

View file

@ -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