lib/active_ldap/user_password.rb in activeldap-3.2.3 vs lib/active_ldap/user_password.rb in activeldap-4.0.0

- old
+ new

@@ -5,10 +5,10 @@ module ActiveLdap module UserPassword module_function def valid?(password, hashed_password) - unless /^\{([A-Z][A-Z\d]+)\}/ =~ hashed_password + unless /^\{([A-Za-z][A-Za-z\d]+)\}/ =~ hashed_password # Plain text password return hashed_password == password end type = $1 hashed_password_without_type = $POSTMATCH