Replace hard-coded value with the macro.

main
absc 2024-08-07 01:23:30 +02:00
parent b06e7d9f50
commit 9bf0e3609a
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ based on the application settings, the confirmation method may vary.
Reason :: term().
new(User, Password, Email, Bucket) ->
Salt = rand:bytes(32),
Salt = rand:bytes(?RANDBYTES),
Hash = crypto:hash(sha256, <<Password/binary, Salt/binary>>),
Data = #{<<"email">> => Email},