This password has been used for many years so I cannot change it without ire from employees. The original code was done in Java which allows a leading zero. Is there any way I can still use the password "0123" in Kotlin? I have the password saved as a variable.
Tried 0123 and it gives the error: Unsupported [Literal prefixes and suffixes] & Property Setter and Getter expected.
I expected it to work as it works without a 0 in front.
Usage:
private var password = 0123
private var passcode: EditText? = null
if (passcode?.text.toString() == password.toString()) {
// do something
}else {
// do something else
}