This is an automated email from the ASF dual-hosted git repository.

mdisabatino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new bccf471  Fix confirm password reset
bccf471 is described below

commit bccf47121c6e74e2700abb39fb5dd512dc4d1711
Author: Marco Di Sabatino Di Diodoro <[email protected]>
AuthorDate: Tue Aug 18 12:37:02 2020 +0200

    Fix confirm password reset
---
 .../apache/syncope/client/enduser/pages/SelfConfirmPasswordReset.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/pages/SelfConfirmPasswordReset.java
 
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/pages/SelfConfirmPasswordReset.java
index 0051526..ba1e6f5 100644
--- 
a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/pages/SelfConfirmPasswordReset.java
+++ 
b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/pages/SelfConfirmPasswordReset.java
@@ -68,7 +68,7 @@ public class SelfConfirmPasswordReset extends 
BaseEnduserWebPage {
     public SelfConfirmPasswordReset(final PageParameters parameters) {
         super(parameters);
 
-        if (parameters != null || parameters.get("token").isEmpty()) {
+        if (parameters == null || parameters.get("token").isEmpty()) {
             LOG.debug("No token parameter found in the request url");
             parameters.add("errorMessage", 
getString("self.confirm.pwd.reset.error.empty"));
             setResponsePage(getApplication().getHomePage(), parameters);

Reply via email to