diff --git a/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/PasswordResetTokenManager.java b/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/PasswordResetTokenManager.java index 48e1171..1926bd9 100644 --- a/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/PasswordResetTokenManager.java +++ b/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/PasswordResetTokenManager.java @@ -191,5 +191,14 @@ public String getSourceAddress() { public Date getExpires() { return this.expires; } + + @Override + public String toString() { + return "ResetRequest{" + + "userId='" + userId + '\'' + + ", sourceAddress='" + sourceAddress + '\'' + + ", expires=" + expires + + '}'; + } } } diff --git a/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/admin/PasswordResetSettingsServlet.java b/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/admin/PasswordResetSettingsServlet.java index a527f00..f14f8c1 100644 --- a/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/admin/PasswordResetSettingsServlet.java +++ b/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/admin/PasswordResetSettingsServlet.java @@ -421,5 +421,31 @@ public List getResetRequests() { return this.resetRequests; } + @Override + public String toString() { + return "Dto{" + + "notSupported=" + notSupported + + ", enabled=" + enabled + + ", server='" + server + '\'' + + ", serverError='" + serverError + '\'' + + ", senderName='" + senderName + '\'' + + ", senderNameError='" + senderNameError + '\'' + + ", senderAddress='" + senderAddress + '\'' + + ", senderAddressError='" + senderAddressError + '\'' + + ", subject='" + subject + '\'' + + ", subjectError='" + subjectError + '\'' + + ", body='" + body + '\'' + + ", bodyError='" + bodyError + '\'' + + ", expiryCount='" + expiryCount + '\'' + + ", expiryPeriod='" + expiryPeriod + '\'' + + ", expiryError='" + expiryError + '\'' + + ", minLength='" + minLength + '\'' + + ", minLengthError='" + minLengthError + '\'' + + ", maxLength='" + maxLength + '\'' + + ", maxLengthError='" + maxLengthError + '\'' + + ", valid=" + valid + + ", resetRequests=" + resetRequests + + '}'; + } } } diff --git a/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/client/PasswordResetChangePasswordServlet.java b/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/client/PasswordResetChangePasswordServlet.java index 0e70ac0..f2e045d 100644 --- a/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/client/PasswordResetChangePasswordServlet.java +++ b/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/client/PasswordResetChangePasswordServlet.java @@ -197,5 +197,13 @@ public boolean isValid() { return this.valid; } + @Override + public String toString() { + return "Form{" + + "userId='" + userId + '\'' + + ", token='" + token + '\'' + + ", valid=" + valid + + '}'; + } } } diff --git a/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/client/PasswordResetSendEmailServlet.java b/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/client/PasswordResetSendEmailServlet.java index 321a4c9..15ead00 100644 --- a/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/client/PasswordResetSendEmailServlet.java +++ b/src/main/java/org/jivesoftware/openfire/plugin/passwordreset/servlet/client/PasswordResetSendEmailServlet.java @@ -220,6 +220,16 @@ public void setEmailSent(boolean emailSent) { this.emailSent = emailSent; } + @Override + public String toString() { + return "Form{" + + "enabled=" + enabled + + ", user='" + user + '\'' + + ", userError='" + userError + '\'' + + ", emailSent=" + emailSent + + ", valid=" + valid + + '}'; + } } }