Log successful login attempts
This commit is contained in:
parent
49dc82fb0a
commit
0198a944ac
2 changed files with 2 additions and 0 deletions
|
@ -93,6 +93,7 @@ pub async fn create_account(
|
|||
let user_data = account_data.into_inner()
|
||||
.into_user_data(password_hash, private_key_pem);
|
||||
let user = create_user(db_client, user_data).await?;
|
||||
log::warn!("created user {}", user.id);
|
||||
let account = Account::from_user(user, &config.instance_url());
|
||||
Ok(HttpResponse::Created().json(account))
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@ async fn token_view(
|
|||
&created_at,
|
||||
&expires_at,
|
||||
).await?;
|
||||
log::warn!("created auth token for user {}", user.id);
|
||||
let token_response = TokenResponse::new(
|
||||
access_token,
|
||||
created_at.timestamp(),
|
||||
|
|
Loading…
Reference in a new issue