app: Fix password reset redirection (#513)

* Fix password reset redirection
* Add password reset enable flag
This commit is contained in:
Austin Alvarado
2023-03-30 09:47:41 -06:00
committed by GitHub
parent 88a9f8a97b
commit c4b8621e2a
4 changed files with 16 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ use hmac::Hmac;
use jwt::{SignWithKey, VerifyWithKey};
use sha2::Sha512;
use time::ext::NumericalDuration;
use tracing::{debug, instrument, warn};
use tracing::{debug, info, instrument, warn};
use lldap_auth::{login, password_reset, registration, JWTClaims};
@@ -183,6 +183,7 @@ where
.await
{
warn!("Error sending email: {:#?}", e);
info!("Reset token: {}", token);
return Err(TcpError::InternalServerError(format!(
"Could not send email: {}",
e