Skip to content

Commit

Permalink
[mms] Password strength testing is now case-insensitive (delrio@mie.u…
Browse files Browse the repository at this point in the history
…toronto.ca; Request #12708).
  • Loading branch information
slusarz committed Oct 1, 2013
1 parent 4d60611 commit baff954
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion framework/Auth/lib/Horde/Auth.php
Expand Up @@ -436,8 +436,9 @@ static public function checkPasswordSimilarity($password, array $dict,

// Check for percentages similarity also. This will catch very simple
// Things like "password" -> "password2" or "xpasssword"...
// Also, don't allow simple changing of capitalization to pass
foreach ($dict as $test) {
similar_text($password, $test, $percent);
similar_text(Horde_String::lower($password), Horde_String::lower($test), $percent);
if ($percent > $max) {
throw new Horde_Auth_Exception(Horde_Auth_Translation::t("The password is too simple to guess."));
}
Expand Down
4 changes: 2 additions & 2 deletions framework/Auth/package.xml
Expand Up @@ -35,7 +35,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Password strength testing is now case-insensitive (delrio@mie.utoronto.ca; Request #12708).
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -892,7 +892,7 @@
<date>2013-09-02</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Password strength testing is now case-insensitive (delrio@mie.utoronto.ca; Request #12708).
</notes>
</release>
</changelog>
Expand Down

0 comments on commit baff954

Please sign in to comment.