* lib/core: Fixed wrong argument order for luci.user.checkpasswd
This commit is contained in:
parent
ffd74bcc09
commit
c7b5b23f87
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue