mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-06 17:08:29 +08:00
remove session getFormattedId
This commit is contained in:
parent
87338c8970
commit
c717ea7892
@ -27,8 +27,6 @@ import org.springframework.security.core.Authentication;
|
||||
|
||||
public class Session implements Serializable{
|
||||
private static final long serialVersionUID = 9008067569150338296L;
|
||||
|
||||
public static final String SESSION_PREFIX = "OT";
|
||||
|
||||
public static final int MAX_EXPIRY_DURATION = 60 * 5; //default 5 minutes.
|
||||
|
||||
@ -70,10 +68,6 @@ public class Session implements Serializable{
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getFormattedId() {
|
||||
return SESSION_PREFIX + id;
|
||||
}
|
||||
|
||||
public void setId(String sessionId) {
|
||||
this.id = sessionId;
|
||||
}
|
||||
|
||||
@ -42,6 +42,6 @@ public class OnlineSessionEndpoint {
|
||||
public String ticketValidate(
|
||||
@RequestParam(value ="ticket",required = true) String ticket) {
|
||||
Session session = sessionManager.get(ticket);
|
||||
return session == null ? "" : session.getFormattedId();
|
||||
return session == null ? "" : session.getId();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user