Merge pull request #7760 from zmstone/0425-5.0-improve-app-secret-randmisation
fix(emqx_mgmt_auth): better randomisation of app secrets
This commit is contained in:
commit
bf3acaaaee
|
@ -182,4 +182,5 @@ trans(Fun) ->
|
|||
end.
|
||||
|
||||
generate_api_secret() ->
|
||||
emqx_guid:to_base62(emqx_guid:gen()).
|
||||
Random = crypto:strong_rand_bytes(32),
|
||||
emqx_base62:encode(Random).
|
||||
|
|
Loading…
Reference in New Issue