syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Baiocco (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SYNCOPE-767) Password Policy: mustn't contain value of the following attributes case insensitive
Date Tue, 16 Feb 2016 08:38:18 GMT
Nicola Baiocco created SYNCOPE-767:
--------------------------------------

             Summary: Password Policy: mustn't contain value of the following attributes case
insensitive
                 Key: SYNCOPE-767
                 URL: https://issues.apache.org/jira/browse/SYNCOPE-767
             Project: Syncope
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.1.3
            Reporter: Nicola Baiocco


Improvement of class  org.apache.syncope.core.policy.PasswordPolicyEnforcer

Instead of 
{code:java}
if (password.contains(word)) {
                throw new PasswordPolicyException("Used word(s) not permitted");
}
{code}
use
{code:java}
if (StringUtils.containsIgnoreCase(password, word)) {
...
}
{code}






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message