sane formatting

This commit is contained in:
Hamcha 2023-06-29 15:46:36 +02:00
parent b9c8ef81b3
commit afc3ffd89f
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89

View file

@ -31,11 +31,7 @@ pub async fn bootstrap(State(state): State<Arc<AppState>>) -> Result<Json<Value>
let password = random();
sqlx::query!(
r#"
INSERT INTO users ( name, display_name, password, roles )
VALUES ( $1, $2, $3, $4 )
RETURNING id
"#,
r#"INSERT INTO users ( name, display_name, password, roles ) VALUES ( $1, $2, $3, $4 ) RETURNING id"#,
username,
"Administrator",
hash(&password)?,