bcrypt_elixir icon indicating copy to clipboard operation
bcrypt_elixir copied to clipboard

Set unusable password

Open spapas opened this issue 2 years ago • 1 comments

Hello! Is there a string I could save on my password field so as to have an unusable password ? I've got some users that are able to login through a different method and I don't want them to be able to login with a password.

spapas avatar May 05 '22 08:05 spapas

How about a random strong password? Would this work?

:crypto.strong_rand_bytes(32)
|>  Bcrypt.hash_pwd_salt()

brettinternet avatar Jun 07 '23 16:06 brettinternet