From: Aryeh Gregor Date: Sun, 13 Dec 2009 20:24:17 +0000 (+0000) Subject: vB strips whitespace from passwords X-Git-Tag: 1.31.0-rc.0~38549 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=3c50f821ad40762046c18571777b35a220cc3bfa;p=lhc%2Fweb%2Fwiklou.git vB strips whitespace from passwords --- diff --git a/includes/extauth/vB.php b/includes/extauth/vB.php index a41288cc2d..6f00874c89 100644 --- a/includes/extauth/vB.php +++ b/includes/extauth/vB.php @@ -76,6 +76,8 @@ class ExternalUser_vB extends ExternalUser { public function getName() { return $this->mRow->username; } public function authenticate( $password ) { + # vBulletin seemingly strips whitespace from passwords + $password = trim( $password ); return $this->mRow->password == md5( md5( $password ) . $this->mRow->salt ); }