How to replace a password with asteriks in an infolist but keep the value to copy
I have a password field in my infolist and I'd like to convert it into asteriks like ** but at the same time I want to keep it copyable with its real value
5 Replies
I found Str::mask() method but I couldn't understand that it does keep the password value?
use
formatStateUsing
getStateUsing will change the state
I changed my code like this. When I copy the password what the value will be. Real password value or just asteriks like **?
I can't test it because I'm working on http and so I can't copy the value.
hum, not sure what copyable will use as a value.. There is a
copyableState
that you can also useHere is the last version of my code. I hope it works. Thanks @Leandro Ferreira .