Spear.disable_user

You're seeing just the function disable_user, go back to Spear module for more information.
Link to this function

disable_user(conn, login_name, opts \\ [])

View Source (since 0.3.0)

Specs

disable_user(
  connection :: Spear.Connection.t(),
  login_name :: String.t(),
  opts :: Keyword.t()
) :: :ok | {:error, any()}

Disables a user's ability to make requests against the EventStoreDB

This can be used in conjunction with Spear.enable_user/3 to temporarily deny access to a user as an alternative to deleting and creating the user. Enabling and disabling users does not require the password of the user: just that requestor to be in the $admins group.

Options

All options are passed to Spear.request/5.

Examples

iex> Spear.enable_user(conn, "aladdin")
:ok
iex> Spear.disable_user(conn, "aladdin")
:ok