You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After talking to someone who used password-instances, it's still somewhat annoying to have to make a field Text, just because you want to also use it with ToJSON to send between services.
It might be a good idea to give an example to make this more convenient, because they did say they think it's a good idea not to allow Password to be turned into JSON for security's sake.
I think something in the documentation near the JSON instances like the following would make it easier for users to switch between Text and Password within other types:
After talking to someone who used
password-instances
, it's still somewhat annoying to have to make a fieldText
, just because you want to also use it withToJSON
to send between services.It might be a good idea to give an example to make this more convenient, because they did say they think it's a good idea not to allow
Password
to be turned into JSON for security's sake.I think something in the documentation near the JSON instances like the following would make it easier for users to switch between
Text
andPassword
within other types:Instead of:
and then changing the
loginPassword
toPassword
just before hashing or checking, do the following:This way, you can have a
ToJSON
instance forLoginForm
while still usingLoginForm Password
everywhere in your code, while just doing:just before sending it over the wire, and you can still just get the password straight from JSON because of the
FromJSON
instance.The text was updated successfully, but these errors were encountered: