Function veloren_server::add_admin
source · pub fn add_admin(
username: &str,
role: AdminRole,
login_provider: &LoginProvider,
editable_settings: &mut EditableSettings,
data_dir: &Path,
) -> Option<Uuid>
Expand description
If successful returns the Some(uuid) of the added admin
NOTE: Do not allow this to be called from any command that doesn’t go through the CLI!