Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton committed Jun 28, 2024
1 parent 887554a commit df1c848
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion avRegistration/auth-method-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ angular.module('avRegistration')
var message = messageComponents[1];
var subParts = message.split(":");

if (messageComponents.length < 4) {
if (subParts.length < 4) {
throw new Error("Invalid message format");
}

Expand Down
2 changes: 1 addition & 1 deletion dist/appCommon-v10.4.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
var createTimestamp = subMessage[1].split("/");
if (2 !== createTimestamp.length) throw new Error("Invalid message format");
expiryTimestamp = createTimestamp[1].split(":");
if (createTimestamp.length < 4) throw new Error("Invalid message format");
if (expiryTimestamp.length < 4) throw new Error("Invalid message format");
subMessage = expiryTimestamp.slice(0, expiryTimestamp.length - 3).join(":"), createTimestamp = parseInt(expiryTimestamp[expiryTimestamp.length - 3], 10),
expiryTimestamp = parseInt(expiryTimestamp[expiryTimestamp.length - 1], 10);
return {
Expand Down

0 comments on commit df1c848

Please sign in to comment.