Replace hard-coded value with the macro.
parent
b06e7d9f50
commit
9bf0e3609a
|
@ -170,7 +170,7 @@ based on the application settings, the confirmation method may vary.
|
||||||
Reason :: term().
|
Reason :: term().
|
||||||
|
|
||||||
new(User, Password, Email, Bucket) ->
|
new(User, Password, Email, Bucket) ->
|
||||||
Salt = rand:bytes(32),
|
Salt = rand:bytes(?RANDBYTES),
|
||||||
Hash = crypto:hash(sha256, <<Password/binary, Salt/binary>>),
|
Hash = crypto:hash(sha256, <<Password/binary, Salt/binary>>),
|
||||||
|
|
||||||
Data = #{<<"email">> => Email},
|
Data = #{<<"email">> => Email},
|
||||||
|
|
Loading…
Reference in New Issue