Skip to content

Commit e68895c

Browse files
committed
fixing #57
1 parent e2359b3 commit e68895c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/controllers/JWTInterceptTabController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public class JWTInterceptTabController implements IMessageEditorTab {
4747
private final JWTInterceptTab jwtST;
4848
private final IExtensionHelpers helpers;
4949
private ITokenPosition tokenPosition;
50+
private boolean resignOnType;
5051
private boolean randomKey;
5152
private boolean chooseSignature;
5253
private boolean recalculateSignature;
@@ -221,6 +222,7 @@ private void algAttackChanged() {
221222

222223
private void radioButtonChanged(boolean cDM, boolean cRK, boolean cOS, boolean cRS, boolean cCS) {
223224
clearError();
225+
resignOnType = !cDM && !cOS;
224226
boolean oldRandomKey = randomKey;
225227
edited = true;
226228
addMetaHeader = false;
@@ -353,7 +355,7 @@ private void handleJWTAreaTyped() {
353355
reportError("invalid JWT");
354356
return;
355357
}
356-
if ((recalculateSignature || randomKey) && jwtST.getKeyField().isEnabled()) {
358+
if (resignOnType) {
357359
Output.output("Recalculating signature as key typed");
358360
CustomJWToken token = null;
359361
try {

0 commit comments

Comments
 (0)