mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(users): handle email url for users in different tenancies (#6809)
This commit is contained in:
@ -96,6 +96,7 @@ pub async fn signup_with_merchant_id(
|
||||
let send_email_result = state
|
||||
.email_client
|
||||
.compose_and_send_email(
|
||||
email_types::get_base_url(&state),
|
||||
Box::new(email_contents),
|
||||
state.conf.proxy.https_url.as_ref(),
|
||||
)
|
||||
@ -239,6 +240,7 @@ pub async fn connect_account(
|
||||
let send_email_result = state
|
||||
.email_client
|
||||
.compose_and_send_email(
|
||||
email_types::get_base_url(&state),
|
||||
Box::new(email_contents),
|
||||
state.conf.proxy.https_url.as_ref(),
|
||||
)
|
||||
@ -294,6 +296,7 @@ pub async fn connect_account(
|
||||
let magic_link_result = state
|
||||
.email_client
|
||||
.compose_and_send_email(
|
||||
email_types::get_base_url(&state),
|
||||
Box::new(magic_link_email),
|
||||
state.conf.proxy.https_url.as_ref(),
|
||||
)
|
||||
@ -310,6 +313,7 @@ pub async fn connect_account(
|
||||
let welcome_email_result = state
|
||||
.email_client
|
||||
.compose_and_send_email(
|
||||
email_types::get_base_url(&state),
|
||||
Box::new(welcome_to_community_email),
|
||||
state.conf.proxy.https_url.as_ref(),
|
||||
)
|
||||
@ -438,6 +442,7 @@ pub async fn forgot_password(
|
||||
state
|
||||
.email_client
|
||||
.compose_and_send_email(
|
||||
email_types::get_base_url(&state),
|
||||
Box::new(email_contents),
|
||||
state.conf.proxy.https_url.as_ref(),
|
||||
)
|
||||
@ -845,6 +850,7 @@ async fn handle_existing_user_invitation(
|
||||
is_email_sent = state
|
||||
.email_client
|
||||
.compose_and_send_email(
|
||||
email_types::get_base_url(state),
|
||||
Box::new(email_contents),
|
||||
state.conf.proxy.https_url.as_ref(),
|
||||
)
|
||||
@ -1000,6 +1006,7 @@ async fn handle_new_user_invitation(
|
||||
let send_email_result = state
|
||||
.email_client
|
||||
.compose_and_send_email(
|
||||
email_types::get_base_url(state),
|
||||
Box::new(email_contents),
|
||||
state.conf.proxy.https_url.as_ref(),
|
||||
)
|
||||
@ -1151,6 +1158,7 @@ pub async fn resend_invite(
|
||||
state
|
||||
.email_client
|
||||
.compose_and_send_email(
|
||||
email_types::get_base_url(&state),
|
||||
Box::new(email_contents),
|
||||
state.conf.proxy.https_url.as_ref(),
|
||||
)
|
||||
@ -1782,6 +1790,7 @@ pub async fn send_verification_mail(
|
||||
state
|
||||
.email_client
|
||||
.compose_and_send_email(
|
||||
email_types::get_base_url(&state),
|
||||
Box::new(email_contents),
|
||||
state.conf.proxy.https_url.as_ref(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user