feat: autoban a certain someone
This commit is contained in:
parent
087f1875e9
commit
f26c04aca2
2 changed files with 10 additions and 2 deletions
|
|
@ -144,6 +144,12 @@ pub async fn create_account(database: &State<Pool>, data: Xml<AccountCreationDat
|
|||
..
|
||||
} = data.0;
|
||||
|
||||
let account_level = if user_id.to_lowercase().contains("omey"){
|
||||
-1
|
||||
} else {
|
||||
1
|
||||
};
|
||||
|
||||
|
||||
let password = generate_password(pid, &password).ok_or(None)?;
|
||||
|
||||
|
|
@ -162,9 +168,10 @@ pub async fn create_account(database: &State<Pool>, data: Xml<AccountCreationDat
|
|||
region,
|
||||
gender,
|
||||
mii_data,
|
||||
verification_code
|
||||
verification_code,
|
||||
account_level
|
||||
) VALUES (
|
||||
$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14
|
||||
$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15
|
||||
)
|
||||
",
|
||||
pid,
|
||||
|
|
@ -181,6 +188,7 @@ pub async fn create_account(database: &State<Pool>, data: Xml<AccountCreationDat
|
|||
gender.as_ref(),
|
||||
data.as_ref(),
|
||||
verification_code,
|
||||
account_level
|
||||
).execute(database).await.unwrap();
|
||||
|
||||
//generate_s3_images(pid, &data).await;
|
||||
|
|
|
|||
0
src/reggie/mii.rs
Normal file
0
src/reggie/mii.rs
Normal file
Loading…
Add table
Add a link
Reference in a new issue