};
use lemmy_db_schema::source::site::Site;
use lemmy_db_views::structs::RegistrationApplicationView;
-use lemmy_utils::{ConnectionId, LemmyError};
+use lemmy_utils::{error::LemmyError, ConnectionId};
use lemmy_websocket::LemmyContext;
#[async_trait::async_trait(?Send)]
// Only let admins do this
is_admin(&local_user_view)?;
- let verified_email_only = blocking(context.pool(), Site::read_local_site)
+ let verified_email_only = blocking(context.pool(), Site::read_local)
.await??
.require_email_verification;