当前位置: 首页>>代码示例>>PHP>>正文


PHP UserInterface::getConfirmationToken方法代码示例

本文整理汇总了PHP中FOS\UserBundle\Model\UserInterface::getConfirmationToken方法的典型用法代码示例。如果您正苦于以下问题:PHP UserInterface::getConfirmationToken方法的具体用法?PHP UserInterface::getConfirmationToken怎么用?PHP UserInterface::getConfirmationToken使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FOS\UserBundle\Model\UserInterface的用法示例。


在下文中一共展示了UserInterface::getConfirmationToken方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sendResettingEmailMessage

 public function sendResettingEmailMessage(UserInterface $user)
 {
     $template = $this->parameters['template']['resetting'];
     $url = $this->router->generate('fos_user_resetting_reset', array('token' => $user->getConfirmationToken()), UrlGeneratorInterface::ABSOLUTE_URL);
     $context = array('user' => $user, 'confirmationUrl' => $url);
     $this->sendMessage($template, $context, $this->parameters['from_email']['resetting'], $user->getEmail());
 }
开发者ID:yoannfleurydev,项目名称:amicale-src,代码行数:7,代码来源:TwigSwiftMailer.php

示例2: sendEmailMessage

 public function sendEmailMessage(UserInterface $user)
 {
     $template = $this->parameters['template']['new'];
     $url = $this->router->generate('fos_user_registration_confirm_email', ['token' => $user->getConfirmationToken(), 'email' => $user->getEmail()], true);
     $context = ['user' => $user, 'confirmationUrl' => $url];
     $this->sendMessage($template, $context, $this->parameters['from_email']['confirmation'], $user->getEmail());
 }
开发者ID:rotanov,项目名称:fefu-social-network,代码行数:7,代码来源:TwigSwiftMailer.php

示例3: sendResettingEmailMessage

 public function sendResettingEmailMessage(UserInterface $user)
 {
     $template = $this->parameters['template']['resetting'];
     $url = $this->router->generate('get_reset_resetting', array('token' => $user->getConfirmationToken()), true);
     $context = array('user' => $user, 'confirmationUrl' => str_replace('api', '#', $url));
     $this->sendMessage($template, $context, $this->parameters['from_email']['resetting'], $user->getEmail());
 }
开发者ID:norkazuleta,项目名称:proyectoServer,代码行数:7,代码来源:TwigSwiftMailer.php

示例4: sendConfirmationEmailMessage

 public function sendConfirmationEmailMessage(UserInterface $user)
 {
     $template = $this->parameters['confirmation.template'];
     $url = $this->router->generate('fos_user_registration_confirm', array('token' => $user->getConfirmationToken()), true);
     $rendered = $this->templating->render($template, array('user' => $user, 'confirmationUrl' => str_replace('%23', '#', $url)));
     $this->sendEmailMessage($rendered, $this->parameters['from_email']['confirmation'], $user->getEmail());
 }
开发者ID:rommsen,项目名称:plesynd,代码行数:7,代码来源:Mailer.php

示例5: sendInvitationEmail

 /**
  * {@inheritdoc}
  */
 public function sendInvitationEmail(UserInterface $user)
 {
     $template = $this->parameters['invitation.template'];
     $url = $this->router->generate('kreta_user_registration', ['token' => $user->getConfirmationToken()], true);
     $rendered = $this->templating->render($template, ['user' => $user, 'registerUrl' => $url]);
     $this->sendEmailMessage($rendered, self::KRETA_INVITATION_EMAIL, $user->getEmail());
 }
开发者ID:dasklney,项目名称:kreta,代码行数:10,代码来源:Mailer.php

示例6: sendCreationEmailMessage

 /**
  * {@inheritdoc}
  */
 public function sendCreationEmailMessage(UserInterface $user)
 {
     $template = $this->parameters['creation.template'];
     $url = $this->router->generate('fos_user_registration_confirm', array('token' => $user->getConfirmationToken()), UrlGeneratorInterface::ABSOLUTE_URL);
     $rendered = $this->templating->render($template, array('user' => $user, 'password' => $user->getPlainPassword(), 'confirmationUrl' => $url));
     $this->sendEmailMessage($rendered, $this->parameters['from_email']['creation'], $user->getEmail());
 }
开发者ID:tkuska,项目名称:user,代码行数:10,代码来源:Mailer.php

示例7: sendResettingEmailMessage

 public function sendResettingEmailMessage(UserInterface $user, $engine)
 {
     $template = $this->parameters['resetting_password.template'];
     $url = $this->router->generate('fos_user_user_reset_password', array('token' => $user->getConfirmationToken()), true);
     $rendered = $this->templating->render($template . '.txt.' . $engine, array('user' => $user, 'confirmationUrl' => $url));
     $this->sendEmailMessage($rendered, $this->getSenderEmail('resetting_password'), $user->getEmail());
 }
开发者ID:KnpLabs,项目名称:KnpUserBundle,代码行数:7,代码来源:Mailer.php

示例8: sendResettingEmailMessage

 public function sendResettingEmailMessage(UserInterface $user)
 {
     $template = $this->getTemplate('resetting');
     $url = $this->router->generate('fos_user_resetting_reset', array('token' => $user->getConfirmationToken()), true);
     $context = array('user' => $user, 'confirmationUrl' => $url);
     return $this->sendMessage($template, $context, $this->getFromEmail('resetting'), $user->getEmail());
 }
开发者ID:polifonic,项目名称:FOSUserBundle,代码行数:7,代码来源:TwigSwiftMailer.php

示例9: sendResettingEmailMessage

 public function sendResettingEmailMessage(UserInterface $user)
 {
     $template = $this->parameters['resetting.template'];
     $url = $this->router->generate('fos_user_resetting_reset', array('token' => $user->getConfirmationToken()), true);
     $rendered = $this->templating->render($template, array('user' => $user, 'confirmationUrl' => $url));
     $this->sendEmailMessage($rendered, $this->parameters['from_email']['resetting'], $user->getEmail());
 }
开发者ID:jjspider277,项目名称:weddings,代码行数:7,代码来源:Mailer.php

示例10: sendResettingEmailMessage

 /**
  * Override for change resetting url
  * {@inheritdoc}
  */
 public function sendResettingEmailMessage(UserInterface $user)
 {
     $template = $this->parameters['resetting.template'];
     $resetLink = $this->parameters['password_resetting_link'];
     $url = $resetLink . '/' . $user->getConfirmationToken();
     $rendered = $this->templating->render($template, array('user' => $user, 'confirmationUrl' => $url));
     $this->sendEmailMessage($rendered, $this->parameters['from_email']['resetting'], $user->getEmail());
 }
开发者ID:viettut,项目名称:todo,代码行数:12,代码来源:Mailer.php

示例11: sendResettingEmailMessage

 public function sendResettingEmailMessage(UserInterface $user)
 {
     $template = $this->parameters['template']['resetting'];
     $url = $this->router->generate('sonata_user_resetting_reset', array('token' => $user->getConfirmationToken()), true);
     $email = key($this->parameters['from_email']['resetting']);
     $context = array('user' => $user, 'confirmationUrl' => $url, 'ttl' => $this->parameters['ttl'], 'email' => $email, 'administrator' => $this->parameters['from_email']['resetting'][$email], 'request' => $this->requestStack->getCurrentRequest());
     $this->sendMessage($template, $context, $this->parameters['from_email']['resetting'], $user->getEmail());
 }
开发者ID:bruery,项目名称:platform,代码行数:8,代码来源:Mailer.php

示例12: sendResettingEmailMessage

 /**
  * {@inheritdoc}
  */
 public function sendResettingEmailMessage(UserInterface $user)
 {
     $url = $this->router->generate('fos_user_resetting_reset', array('token' => $user->getConfirmationToken()), true);
     $subject = $this->translate('resetting.email.subject', $user->getUsername(), $url);
     $body = $this->translate('resetting.email.message', $user->getUsername(), $url);
     $rendered = $this->templating->render('@App/Utils/email_structure.html.twig', array('body' => $body));
     $this->sendEmailMessage($rendered, $subject, $this->parameters['from_email']['resetting'], $user->getEmail());
 }
开发者ID:nathix86,项目名称:bcp-website,代码行数:11,代码来源:MailTransportUserMailer.php

示例13: sendResettingEmailMessage

 /**
  * Send mail to reset user password
  * 
  * @param UserInterface $user
  * @param string        $route_reset_connexion
  * @param string        $body_type             ['body_text', 'body_html']
  * 
  * @return string
  * @access public
  * @author Etienne de Longeaux <etienne.delongeaux@gmail.com>
  */
 public function sendResettingEmailMessage(UserInterface $user, $route_reset_connexion = 'fos_user_resetting_reset', $body_type = "body_html")
 {
     $url = $this->container->get('sfynx.tool.route.factory')->getRoute($route_reset_connexion, array('token' => $user->getConfirmationToken()));
     $html_url = 'http://' . $this->container->get('request')->getHttpHost() . $this->container->get('request')->getBasePath() . $url;
     $html_url = "<a href='{$html_url}'>" . $html_url . "</a>";
     $templateFile = str_replace('::', ':', $this->container->getParameter('sfynx.auth.theme.login')) . 'Resetting:email.txt.twig';
     $from = $this->container->getParameter('sfynx.auth.theme.email.resetting.from_email.address');
     //
     $this->sendEmailMessage($templateFile, $from, $user, $html_url, $body_type);
 }
开发者ID:pigroupe,项目名称:SfynxAuthBundle,代码行数:21,代码来源:PiMailerManager.php

示例14: sendConfirmationEmailMessage

 public function sendConfirmationEmailMessage(UserInterface $user)
 {
     //        var_dump($user->getConfirmationToken());
     //        die();
     $template = $this->parameters['confirmation.template'];
     //        $url = $this->router->generate('fos_user_registration_confirm', array('token' => $user->getConfirmationToken()), true);
     $url = "http://localhost:8080/SymfonyClient/app/#/core/signup/confirm/?code=" . $user->getConfirmationToken();
     $rendered = $this->templating->render($template, array('user' => $user, 'confirmationUrl' => $url));
     $this->sendEmailMessage($rendered, $this->parameters['from_email']['confirmation'], $user->getEmail());
 }
开发者ID:sujit13666,项目名称:SymfonyReal2,代码行数:10,代码来源:Mailer.php

示例15: sendResettingEmailMessage

 /**
  * {@inheritdoc}
  */
 public function sendResettingEmailMessage(UserInterface $user)
 {
     $from = $this->fromEmail;
     $template = 'Emails/password_reseting_email.html.twig';
     $url = $this->router->generate('rentme', array(), true) . "/" . $user->getConfirmationToken();
     //$url = path('rentme') . "?passwordResetButton&token=" + $user->getConfirmationToken();
     $url .= "?passwordReset";
     $to = $user->getEmail();
     $rendered = $this->templating->render($template, array('user' => $user, 'resetUrl' => $url, 'mailer_app_url_prefix' => $this->parameters['mailer_app_url_prefix']));
     $this->sendEmailMessage($rendered, $from, $to, "hey! VIENNA password reset.");
 }
开发者ID:gitroberto,项目名称:heyrentme,代码行数:14,代码来源:HeyrentmeMailer.php


注:本文中的FOS\UserBundle\Model\UserInterface::getConfirmationToken方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。