File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ( ) ,
You can’t perform that action at this time.
0 commit comments