Skip to content

Commit

Permalink
#502 fix path confirm email
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Jan 20, 2023
1 parent 2d62119 commit eb23c30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/plugins/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub fn handle_register_name_and_email(
let mut confirm_url = store
.get_server_url()
.clone()
.set_path("confirmEmail")
.set_path(urls::PATH_CONFIRM_EMAIL)
.url();
confirm_url.set_query(Some(&format!("token={}", token)));
let message = MailMessage {
Expand Down
5 changes: 3 additions & 2 deletions lib/src/plugins/reset_pubkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn handle_request_email_pubkey(
// send the user an e-mail to confirm sign up
let store_clone = store.clone();
let confirmation_token_struct = AddPubkeyToken {
agent: agent.subject.clone(),
agent: agent.subject,
};
let token = crate::token::sign_claim(store, confirmation_token_struct)?;
let mut confirm_url = store
Expand All @@ -74,7 +74,8 @@ pub fn handle_request_email_pubkey(
let message = MailMessage {
to: email,
subject: "Add a new Passphrase to your account".to_string(),
body: format!("You've requested adding a new Passphrase. Click the link below to do so!"),
body: "You've requested adding a new Passphrase. Click the link below to do so!"
.to_string(),
action: Some(MailAction {
name: "Add new Passphrase to account".to_string(),
url: confirm_url.into(),
Expand Down

0 comments on commit eb23c30

Please sign in to comment.