mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-27 00:56:36 +02:00
remove stale debugging logs
I don't have the hd space to do debug builds, so I use tracing::info to debug on release builds. Silly, right ?
This commit is contained in:
parent
8f3fdb0023
commit
aa2575be3e
1 changed files with 2 additions and 4 deletions
|
@ -27,12 +27,10 @@ pub(crate) async fn oidc_login(
|
||||||
if !services.users.exists(&user_id).await {
|
if !services.users.exists(&user_id).await {
|
||||||
return Err(err!(Request(Unknown("unknown username"))));
|
return Err(err!(Request(Unknown("unknown username"))));
|
||||||
}
|
}
|
||||||
tracing::info!("logging in: {user_id:?}");
|
|
||||||
let valid_hash = services
|
let valid_hash = services
|
||||||
.users
|
.users
|
||||||
.password_hash(&user_id)
|
.password_hash(&user_id)
|
||||||
.await
|
.await?;
|
||||||
.inspect_err(|e| tracing::info!("could not get user's hash: {e:?}"))?;
|
|
||||||
|
|
||||||
if valid_hash.is_empty() {
|
if valid_hash.is_empty() {
|
||||||
return Err(err!(Request(UserDeactivated("the user's hash was not found"))));
|
return Err(err!(Request(UserDeactivated("the user's hash was not found"))));
|
||||||
|
@ -40,7 +38,7 @@ pub(crate) async fn oidc_login(
|
||||||
if verify_password(&query.password, &valid_hash).is_err() {
|
if verify_password(&query.password, &valid_hash).is_err() {
|
||||||
return Err(err!(Request(InvalidParam("password does not match"))));
|
return Err(err!(Request(InvalidParam("password does not match"))));
|
||||||
}
|
}
|
||||||
tracing::info!("{user_id:?} passed, forwarding to consent page");
|
tracing::info!("logging in: {user_id:?}");
|
||||||
|
|
||||||
let hostname = services
|
let hostname = services
|
||||||
.config
|
.config
|
||||||
|
|
Loading…
Add table
Reference in a new issue