Skip to content

Commit 4b7b876

Browse files
committed
#502 fix path confirm email
1 parent 3951526 commit 4b7b876

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/src/plugins/register.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub fn handle_register_name_and_email(
7676
let mut confirm_url = store
7777
.get_server_url()
7878
.clone()
79-
.set_path("confirmEmail")
79+
.set_path(urls::PATH_CONFIRM_EMAIL)
8080
.url();
8181
confirm_url.set_query(Some(&format!("token={}", token)));
8282
let message = MailMessage {

lib/src/plugins/reset_pubkey.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub fn handle_request_email_pubkey(
6262
// send the user an e-mail to confirm sign up
6363
let store_clone = store.clone();
6464
let confirmation_token_struct = AddPubkeyToken {
65-
agent: agent.subject.clone(),
65+
agent: agent.subject,
6666
};
6767
let token = crate::token::sign_claim(store, confirmation_token_struct)?;
6868
let mut confirm_url = store
@@ -74,7 +74,8 @@ pub fn handle_request_email_pubkey(
7474
let message = MailMessage {
7575
to: email,
7676
subject: "Add a new Passphrase to your account".to_string(),
77-
body: format!("You've requested adding a new Passphrase. Click the link below to do so!"),
77+
body: "You've requested adding a new Passphrase. Click the link below to do so!"
78+
.to_string(),
7879
action: Some(MailAction {
7980
name: "Add new Passphrase to account".to_string(),
8081
url: confirm_url.into(),

0 commit comments

Comments
 (0)