소스 검색

replace deviceId/deviceName with just device

tags/2.0.1
Jonathan Cobb 4 년 전
부모
커밋
121fc1cc39
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. +2
    -6
      wizard-common/src/main/java/org/cobbzilla/wizard/auth/LoginRequest.java

+ 2
- 6
wizard-common/src/main/java/org/cobbzilla/wizard/auth/LoginRequest.java 파일 보기

@@ -32,10 +32,8 @@ public class LoginRequest {
@Getter @Setter @JsonProperty private String totpToken;
@JsonIgnore public boolean hasTotpToken() { return !empty(totpToken); }

@Getter @Setter private String deviceId;
@JsonIgnore public boolean hasDevice () { return !empty(deviceId); }

@Getter @Setter private String deviceName;
@Getter @Setter private String device;
@JsonIgnore public boolean hasDevice () { return !empty(device); }

// optional - server-side resource can fill this in for other server-side code to use
@JsonIgnore @Getter @Setter private String userAgent;
@@ -44,7 +42,5 @@ public class LoginRequest {
return "{name="+getName()+", password="+mask(password)+", totpToken="+mask(totpToken)+", device="+getDevice()+"}";
}

@JsonIgnore public String getDevice() { return hasDevice() ? deviceId + " ("+deviceName+")" : "NOT-SET"; }

public String mask(String value) { return empty(value) ? "NOT-SET" : "SET"; }
}

불러오는 중...
취소
저장