Skip to content

Commit

Permalink
fix users_list url (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
xerbalind authored Oct 2, 2024
1 parent fb63cbc commit 5679b87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/users_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,14 +484,15 @@ pub async fn confirm_email_post<'r>(
form: Form<EmailConfirmation>,
mailer: &State<Mailer>,
admin_email: &State<AdminEmail>,
conf: &'r State<Config>,
db: DbConn,
) -> Result<Either<impl Responder<'r, 'static>, impl Responder<'r, 'static>>> {
if let Some(user) =
User::find_by_email_token(form.token.clone(), &db).await?
{
let user = user.confirm_email(&db).await?;

let user_list_url = uri!(list_users);
let user_list_url = uri!(conf.base_url(), list_users);
mailer.try_create(
admin_email.0.clone(),
String::from("[Zauth] New user registration"),
Expand Down

0 comments on commit 5679b87

Please sign in to comment.