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
When passing a Salt or SaltString to PasswordHasher::hash_password_simple, it's presently necessary to call salt.as_ref() as the salt parameter is &'a str.
It should be possible to switch it to &'a impl AsRef<str> to allow simply passing &salt instead. However, that's a breaking change that should be bundled with other changes in the next release.
When passing a
SaltorSaltStringtoPasswordHasher::hash_password_simple, it's presently necessary to callsalt.as_ref()as the salt parameter is&'a str.It should be possible to switch it to
&'a impl AsRef<str>to allow simply passing&saltinstead. However, that's a breaking change that should be bundled with other changes in the next release.