#253 Remove whitespaces in secret when added manually

This commit is contained in:
Ullas-Aithal 2019-11-04 18:27:03 -06:00
parent 3b84146548
commit f00e3a45c4

View file

@ -195,7 +195,8 @@ public class ManualEntryDialog {
String issuer = issuerInput.getText().toString();
String label = labelInput.getText().toString();
String secret = secretInput.getText().toString();
//Replace spaces with empty characters
String secret = secretInput.getText().toString().replaceAll("\\s+","");
int digits = Integer.parseInt(digitsInput.getText().toString());
if (type == Entry.OTPType.TOTP || type == Entry.OTPType.STEAM) {