sane formatting
This commit is contained in:
parent
b9c8ef81b3
commit
afc3ffd89f
1 changed files with 1 additions and 5 deletions
|
@ -31,11 +31,7 @@ pub async fn bootstrap(State(state): State<Arc<AppState>>) -> Result<Json<Value>
|
||||||
let password = random();
|
let password = random();
|
||||||
|
|
||||||
sqlx::query!(
|
sqlx::query!(
|
||||||
r#"
|
r#"INSERT INTO users ( name, display_name, password, roles ) VALUES ( $1, $2, $3, $4 ) RETURNING id"#,
|
||||||
INSERT INTO users ( name, display_name, password, roles )
|
|
||||||
VALUES ( $1, $2, $3, $4 )
|
|
||||||
RETURNING id
|
|
||||||
"#,
|
|
||||||
username,
|
username,
|
||||||
"Administrator",
|
"Administrator",
|
||||||
hash(&password)?,
|
hash(&password)?,
|
||||||
|
|
Loading…
Reference in a new issue