summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-05-08 13:02:48 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-05-08 13:02:48 +0200
commit8ede209ea3ca4913f7d6d4447ff14439ab3cf1b7 (patch)
treed4f02e45cd38314f0dd648ca06be137ff3e5ec94 /lib/private
parentaf2b7634eeb8c3bd8ec5dec8b600fbaf8ae5d498 (diff)
parentc4109d9aefdde9e0d88dfaf96c9cec97cd3694a1 (diff)
downloadnextcloud-server-8ede209ea3ca4913f7d6d4447ff14439ab3cf1b7.tar.gz
nextcloud-server-8ede209ea3ca4913f7d6d4447ff14439ab3cf1b7.zip
Merge pull request #8493 from owncloud/we-certainly-don't-want-type-juggling-on-that
Use strict type comparison * owncloud/we-certainly-don't-want-type-juggling-on-that: Use strict type comparison
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/user/database.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/user/database.php b/lib/private/user/database.php
index 681f03981f5..dec38464f98 100644
--- a/lib/private/user/database.php
+++ b/lib/private/user/database.php
@@ -183,14 +183,14 @@ class OC_User_Database extends OC_User_Backend {
$row = $result->fetchRow();
if ($row) {
$storedHash = $row['password'];
- if ($storedHash[0] == '$') { //the new phpass based hashing
+ if ($storedHash[0] === '$') { //the new phpass based hashing
$hasher = $this->getHasher();
if ($hasher->CheckPassword($password . OC_Config::getValue('passwordsalt', ''), $storedHash)) {
return $row['uid'];
}
//old sha1 based hashing
- } elseif (sha1($password) == $storedHash) {
+ } elseif (sha1($password) === $storedHash) {
//upgrade to new hashing
$this->setPassword($row['uid'], $password);
return $row['uid'];