Commit abbe4633 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Correction du mail

parent cc2f96f7
Loading
Loading
Loading
Loading
+2 −2
Changes for module/Application/src/Application/Controller/UtilisateurController.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -521,8 +521,8 @@ class UtilisateurController extends \UnicaenAuth\Controller\UtilisateurControlle
            throw new RuntimeException("Un problème est survenu lors de la création du token", 0,$e);
        }

        $lien = $this->url()->fromRoute('zfcuser/login', ['type'=> 'token'], ['query' => ['token' => $token->getToken()], 'force_canonical' => true], true );
        $this->notifierService->triggerCreationTokenAuthentification($utilisateur, $token, $lien);
        $this->tokenService->injectLogInUriInUserTokens([ $token ]);
        $this->notifierService->triggerCreationTokenAuthentification($utilisateur, $token, $token->getLogInUri()->toString());
        return $this->redirect()->toRoute('utilisateur/voir', ['utilisateur' => $utilisateur->getId()], [], true);
    }
}
 No newline at end of file
+1 −1
Changes for module/Application/src/Application/Notification/NouveauTokenUtilisateurNotification.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ use Notification\Notification;

class NouveauTokenUtilisateurNotification extends Notification
{
    protected $templatePath = 'application/notification/mail/notif-notif-nouveau-token-utilisateur';
    protected $templatePath = 'application/notification/mail/notif-nouveau-token-utilisateur';
    /** @var Utilisateur */
    protected $utilisateur;
    /** @var UtilisateurToken */
+1 −1
Changes for module/Application/view/application/notification/mail/notif-nouveau-token-utilisateur.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ use Application\Entity\Db\UtilisateurToken;
    Celui-ci vous permettra de vous authentifier à <?php echo $this->appInfos()->nom ?> par un clic sur le lien fourni ci-dessous.
</p>
<a href="<?php echo $lien; ?>" title="Connexion à SyGAL grâce au token #<?php echo $token->getId(); ?>">
    Connexion à SyGAL grâce au token #<?php echo $token->getId(); ?>
    Connexion à SyGAL grâce au jeton #<?php echo $token->getId(); ?>
</a>.

<p>