Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix users_list url in new registration mail #297

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading