Skip to content

Commit

Permalink
PushTAN Decoupled: DE mit der TAN weglassen und nicht leer senden
Browse files Browse the repository at this point in the history
  • Loading branch information
willuhn committed Dec 22, 2023
1 parent ead6f37 commit 34fd256
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/org/kapott/hbci/security/Sig.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,14 @@ public boolean signIt()
if (pos!=-1)
{
String pin = pintan.substring(0,pos);
String tan = pintan.substring(pos+1);
msg.propagateValue(sigtail.getPath()+".UserSig.pin",pin,SyntaxElement.DONT_TRY_TO_CREATE,SyntaxElement.DONT_ALLOW_OVERWRITE);
msg.propagateValue(sigtail.getPath()+".UserSig.tan",tan,SyntaxElement.DONT_TRY_TO_CREATE,SyntaxElement.DONT_ALLOW_OVERWRITE);

// TAN nur senden, wenn vorhanden. Andernfalls lassen wir das DE komplett weg
if (pos<pintan.length()-1)
{
String tan = pintan.substring(pos+1);
msg.propagateValue(sigtail.getPath()+".UserSig.tan",tan,SyntaxElement.DONT_TRY_TO_CREATE,SyntaxElement.DONT_ALLOW_OVERWRITE);
}
}
}
else
Expand Down

0 comments on commit 34fd256

Please sign in to comment.