Skip to content

Commit

Permalink
removed json ignore annotation in User class
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Jun 6, 2024
1 parent d44df86 commit 899ae04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions para-core/src/main/java/com/erudika/para/core/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
import com.erudika.para.core.utils.ParaObjectUtils;
import com.erudika.para.core.utils.Utils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotBlank;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
import javax.naming.LimitExceededException;
import jakarta.validation.constraints.NotBlank;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -179,7 +179,6 @@ public void setTwoFA(Boolean twoFA) {
/**
* @return the 2FA secret key. Used for checking the TOTP code.
*/
@JsonIgnore
public String getTwoFAkey() {
return twoFAkey;
}
Expand All @@ -195,7 +194,6 @@ public void setTwoFAkey(String twoFAkey) {
/**
* @return the hashed backup key (shown only once). Used for disabling 2FA.
*/
@JsonIgnore
public String getTwoFAbackupKeyHash() {
return twoFAbackupKeyHash;
}
Expand Down
2 changes: 1 addition & 1 deletion para-core/src/main/resources/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<module name="TodoComment"/>
<module name="UpperEll"/>
<module name="CyclomaticComplexity">
<property name="max" value="17"/>
<property name="max" value="18"/>
</module>

</module>
Expand Down

0 comments on commit 899ae04

Please sign in to comment.