Skip to content

Commit db7a271

Browse files
committed
Removes spaces and minus signs when saving the OTP entry
1 parent 0f1b7e9 commit db7a271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nitrokeyapp/secrets_tab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ def check_credential(self) -> None:
612612

613613
tool_Tip = "Credeantial cannot be saved:"
614614
can_save = True
615-
check_secret = self.ui.otp.text()
615+
check_secret = self.ui.otp.text().replace(" ", "").replace("-", "")
616616

617617
name_len = len(str.encode(self.ui.name.text()))
618618
username_len = len(str.encode(self.ui.username.text()))

0 commit comments

Comments
 (0)