Skip to content

Commit 0b33a86

Browse files
committed
Merge branch 'aiccra-staging' into aiccra-dev
2 parents 61896ec + e5baf4e commit 0b33a86

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

marlo-web/src/main/java/org/cgiar/ccafs/marlo/action/json/superadmin/TipGetTokenServiceAction.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,14 @@ public String execute() throws Exception {
9696
token = jsonResponse.getString("token");
9797
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
9898

99-
Date dueDate = dateFormat.parse(jsonResponse.getString("due_date"));
99+
Date dueDate = null;
100+
if (jsonResponse.has("due_date")) {
101+
dueDate = dateFormat.parse(jsonResponse.getString("due_date"));
102+
}
103+
104+
if (jsonResponse.has("updated_at")) {
105+
dueDate = dateFormat.parse(jsonResponse.getString("updated_at"));
106+
}
100107

101108
// Save token in DB
102109
if (token != null && !token.isEmpty()) {

marlo-web/src/main/resources/custom/aicrra.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5337,6 +5337,7 @@ tipParameter.tipStatusService= Status Service Endpoint
53375337
tipParameter.tokenValue= Token Value
53385338
tipParameter.updateToken= Update Token
53395339
tipParameter.tokenDueDate= Token Due Date
5340+
tipParameter.tipEncryptionKey= Encryption Key
53405341

53415342
#pop-up guide
53425343
login.popup.title=Login

0 commit comments

Comments
 (0)