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();
|
||||
|
||||
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)?,
|
||||
|
|
Loading…
Reference in a new issue