projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd74bc
)
* lib/core: Fixed wrong argument order for luci.user.checkpasswd
author
Steven Barth
<steven@midlink.org>
Sat, 28 Jun 2008 21:18:28 +0000
(21:18 +0000)
committer
Steven Barth
<steven@midlink.org>
Sat, 28 Jun 2008 21:18:28 +0000
(21:18 +0000)
libs/core/luasrc/sys.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/sys.lua
b/libs/core/luasrc/sys.lua
index 540a636fb864b25330e617934792823db632e07d..c5c471a75fee5bb9262cdda1e4059c806a54ed36 100644
(file)
--- 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, passwor
d))
+ return (account.passwd == posix.crypt(
password, account.passw
d))
end
end
end