SMS eleminate I and l from passcode

This commit is contained in:
Milos Kozak 2019-03-11 18:33:43 +01:00
parent b9ea583d3d
commit e1a82cc78e

View file

@ -757,6 +757,7 @@ public class SmsCommunicatorPlugin extends PluginBase {
passCode += Character.toString((char) (startChar2 + Math.random() * ('z' - 'a' + 1)));
int startChar3 = Math.random() > 0.5 ? 'a' : 'A';
passCode += Character.toString((char) (startChar3 + Math.random() * ('z' - 'a' + 1)));
passCode.replace('l','k').replace('I', 'J');
return passCode;
}