pub async fn deactivate_account(
id: &str,
database: Arc<Database>,
notifier: impl Fn(&str) -> Option<Arc<NotifyDispatcher>>,
client_ip: Option<String>,
) -> Result<Option<Account>, Error>Expand description
Deactivates an account, and queues account_deactivated through its
profile’s dispatcher — notifier looks one up by profile name, None where
this process has none — naming client_ip as whoever asked.
The same acme_proxy_protocol::acme::account::deactivate the account’s own request runs,
so the notification goes out however the account was shut.