You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-07 22:41:18 +03:00
data-model: simplify users and sessions
This commit is contained in:
@ -204,7 +204,7 @@ impl Options {
|
||||
let user =
|
||||
register_user(&mut txn, &mut rng, &clock, hasher, username, password).await?;
|
||||
txn.commit().await?;
|
||||
info!(user.id = %user.data, %user.username, "User registered");
|
||||
info!(%user.id, %user.username, "User registered");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@ -217,7 +217,7 @@ impl Options {
|
||||
let user = lookup_user_by_username(&mut txn, username).await?;
|
||||
|
||||
set_password(&mut txn, &mut rng, &clock, hasher, &user, password).await?;
|
||||
info!(user.id = %user.data, %user.username, "Password changed");
|
||||
info!(%user.id, %user.username, "Password changed");
|
||||
txn.commit().await?;
|
||||
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user