fix(cli): emqx_auth_mnesia_cli function spec

This commit is contained in:
DDDHuang 2022-01-25 17:02:06 +08:00
parent 2eae1088ac
commit 43e528b2ba
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ insert_user(User = #emqx_user{login = Login}) ->
[_|_] -> mnesia:abort(existed)
end.
-spec(add_default_user(clientid | username, tuple(), binary()) -> ok | {error, any()}).
-spec(add_default_user(clientid | username, binary(), binary()) -> ok | {error, any()}).
add_default_user(Type, Key, Password) ->
Login = {Type, Key},
case add_user(Login, Password) of