Skip to content

Commit

Permalink
fix users_list url
Browse files Browse the repository at this point in the history
  • Loading branch information
xerbalind committed Sep 29, 2024
1 parent 6dc57d3 commit 24cb1ab
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 @@ -479,14 +479,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 24cb1ab

Please sign in to comment.