forked from alemi/upub
fix: register cli command
This commit is contained in:
parent
4d7f99dfaa
commit
b9386c286a
1 changed files with 3 additions and 10 deletions
|
@ -1,5 +1,4 @@
|
|||
use openssl::rsa::Rsa;
|
||||
use sea_orm::{EntityTrait, IntoActiveModel};
|
||||
use crate::server::admin::Administrable;
|
||||
|
||||
pub async fn register(
|
||||
ctx: crate::server::Context,
|
||||
|
@ -20,12 +19,6 @@ pub async fn register(
|
|||
).await?;
|
||||
|
||||
tracing::info!("registered new user: {username}");
|
||||
}
|
||||
|
||||
// TODO duplicated, make an util?? idk
|
||||
fn clean_domain(domain: &str) -> String {
|
||||
domain
|
||||
.replace("http://", "")
|
||||
.replace("https://", "")
|
||||
.replace('/', "")
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue