From 3c50f821ad40762046c18571777b35a220cc3bfa Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 13 Dec 2009 20:24:17 +0000 Subject: [PATCH] vB strips whitespace from passwords --- includes/extauth/vB.php | 2 ++ 1 file changed, 2 insertions(+) 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 ); } -- 2.20.1