jeremyevans / rodauth

Ruby's Most Advanced Authentication Framework
http://rodauth.jeremyevans.net
MIT License
1.67k stars 95 forks source link

Make `password_hash` method public #299

Closed janko closed 1 year ago

janko commented 1 year ago

There are use cases where one might want to create a password hash outside of the request. The rodauth-model gem currently calls this method in the #password= setter. The rodauth-rails gem is also now calling this method in Active Record fixtures, to more easily support both bcrypt and argon2 along with a potential password pepper.

jeremyevans commented 1 year ago

Thanks for the patch. This seems fine to me. It wasn't private for a particular reason, just no obvious reason to make it public. I'll test and merge later today.