1
0
Fork 0
forked from alemi/upub

fix: register cli command

This commit is contained in:
əlemi 2024-05-13 19:16:41 +02:00
parent 4d7f99dfaa
commit b9386c286a
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -1,5 +1,4 @@
use openssl::rsa::Rsa; use crate::server::admin::Administrable;
use sea_orm::{EntityTrait, IntoActiveModel};
pub async fn register( pub async fn register(
ctx: crate::server::Context, ctx: crate::server::Context,
@ -20,12 +19,6 @@ pub async fn register(
).await?; ).await?;
tracing::info!("registered new user: {username}"); tracing::info!("registered new user: {username}");
}
Ok(())
// TODO duplicated, make an util?? idk
fn clean_domain(domain: &str) -> String {
domain
.replace("http://", "")
.replace("https://", "")
.replace('/', "")
} }