public static function onSuccessActivatePassword(UserActivatePasswordEvent $event)
 {
     if (true === $event->getNotify()) {
         $data = array_merge(self::commonData($event->getUser()), array('{password}' => $event->getPassword()));
         try {
             Yii::app()->mailMessage->raiseMailEvent('onSuccessActivatePassword', $data);
         } catch (Exception $e) {
             Yii::log($e->__toString(), \CLogger::LEVEL_ERROR, 'mail');
         }
     }
 }
 public static function onSuccessActivatePassword(UserActivatePasswordEvent $event)
 {
     if (true === $event->getNotify()) {
         $user = $event->getUser();
         $password = $event->getPassword();
         Yii::app()->mailMessage->raiseMailEvent('PASSWORD_ACTIVATE', ['{user_email}' => $user->email, '{user_password}' => $password, '{site_name}' => Yii::app()->getModule('yupe')->siteName, '{host_info}' => Yii::app()->request->hostInfo]);
         //            Yii::app()->notify->send(
         //                $event->getUser(),
         //                Yii::t('UserModule.user', 'Your password was changed successfully!'),
         //                '//user/email/passwordRecoverySuccessEmail',
         //                [
         //                    'password' => $event->getPassword()
         //                ]
         //            );
     }
 }
 /**
  * @param UserActivatePasswordEvent $event
  */
 public static function onSuccessActivatePassword(UserActivatePasswordEvent $event)
 {
     if (true === $event->getNotify()) {
         Yii::app()->notify->send($event->getUser(), Yii::t('UserModule.user', 'Your password was changed successfully!'), '//user/email/passwordRecoverySuccessEmail', ['password' => $event->getPassword(), 'user' => $event->getUser(), 'event' => $event]);
     }
 }