diff --git a/plugins/UsersManager/UsersManager.php b/plugins/UsersManager/UsersManager.php
index <HASH>..<HASH> 100644
--- a/plugins/UsersManager/UsersManager.php
+++ b/plugins/UsersManager/UsersManager.php
@@ -166,7 +166,7 @@ class UsersManager extends \Piwik\Plugin
      */
     public static function checkPasswordHash($passwordHash, $exceptionMessage)
     {
-        if (strlen($passwordHash) !== strlen(static::getPasswordHash('teststring'))) {
+        if (strlen($passwordHash) != 32) {  // MD5 hash length
             throw new Exception($exceptionMessage);
         }
     }
Revert hash calculation on comparison

For performance reasons