Skip to content

Commit 8d7699b

Browse files
committed
fix a bug: the password of a user is now validated only with user having to be authenticated
1 parent 117daa0 commit 8d7699b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/silverpeas/jcr/auth/SilverpeasAuthentication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private Principal authenticate(SimpleCredentials credentials) throws Authenticat
105105
String domainId = userIdParts[1];
106106
SilverpeasUser user = getSilverpeasUser(login, domainId);
107107
if (user != null) {
108-
if (!user.mustBeAuthenticated()) {
108+
if (user.mustBeAuthenticated()) {
109109
PasswordEncryption encryption = PasswordEncryptionFactory.getFactory()
110110
.getPasswordEncryption(user.getEncryptedPassword());
111111
try {

0 commit comments

Comments
 (0)