diff --git a/lib/IdPAccountManager/WebRequest.pm b/lib/IdPAccountManager/WebRequest.pm index 3f0e8f62e826271aa9212fb8197ff5dae3305db9..2028a4dbc41f8721cfbac3f91445870d5dd447c0 100755 --- a/lib/IdPAccountManager/WebRequest.pm +++ b/lib/IdPAccountManager/WebRequest.pm @@ -412,10 +412,11 @@ sub req_generate_token { ## Send the challenge email with the token IdPAccountManager::Tools::mail_notice( - template => 'mail/send_authentication_token.tt2.eml', - to => $self->{in}->{email_address}, - data => $self->{out}, - logger => $self->{logger} + template => 'mail/send_authentication_token.tt2.eml', + templates_dir => $self->{configuration}->{templates_dir}, + to => $self->{in}->{email_address}, + data => $self->{out}, + logger => $self->{logger} ); $self->{logger}->infof(