Skip to content

Commit

Permalink
Fix dialyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
prefiks committed Dec 17, 2024
1 parent 549a2b0 commit 01955b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod_auth_fast.erl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ c2s_inline_features({Sasl, Bind, Extra}, Host) ->

gen_token(#{sasl2_ua_id := UA, server := Server, user := User}) ->
Mod = gen_mod:db_mod(Server, ?MODULE),
Token = base64url:encode(ua_hash(<<UA/binary, (p1_rand:get_string())/binary>>)),
Token = base64:encode(ua_hash(<<UA/binary, (p1_rand:get_string())/binary>>)),
ExpiresAt = erlang:system_time(second) + mod_auth_fast_opt:token_lifetime(Server),
Mod:set_token(Server, User, ua_hash(UA), next, Token, ExpiresAt),
#fast_token{token = Token, expiry = misc:usec_to_now(ExpiresAt)}.
Expand Down

0 comments on commit 01955b8

Please sign in to comment.