projects
/
Dyndns
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42dd52b
)
Fix password check; fixes #7
author
Nico Kaiser
<nico@kaiser.me>
Fri, 28 Mar 2014 23:14:03 +0000
(
00:14
+0100)
committer
Nico Kaiser
<nico@kaiser.me>
Fri, 28 Mar 2014 23:14:03 +0000
(
00:14
+0100)
src/Dyndns/Users.php
patch
|
blob
|
history
diff --git
a/src/Dyndns/Users.php
b/src/Dyndns/Users.php
index
81f8172
..
3f1627e
100644
(file)
--- a/
src/Dyndns/Users.php
+++ b/
src/Dyndns/Users.php
@@
-22,8
+22,7
@@
class Users
foreach ($lines as $line) {
if (preg_match("/^(.*?):(.*)/", $line, $matches)) {
if (strtolower($matches[1]) == strtolower($user)) {
- $salt = substr($matches[2], 0, 2);
- if (crypt($password, $salt) === $matches[2]) {
+ if (crypt($password, $matches[2]) === $matches[2]) {
$this->debug('Login successful for user ' . $user);
return true;
} else {