"> <?php echo JText::_('COM_EASYSOCIAL_LOGIN_FORGOT_PASSWORD_FULL'); ?> </a> <?php } else { ?> <a class="text-error" href="<?php echo FRoute::account(array('layout' => 'forgetUsername')); ?> "> <?php echo JText::_('COM_EASYSOCIAL_LOGIN_FORGOT_USERNAME'); ?> </a> / <a class="text-error" href="<?php echo FRoute::account(array('layout' => 'forgetPassword')); ?> "> <?php echo JText::_('COM_EASYSOCIAL_LOGIN_FORGOT_PASSWORD'); ?> </a> <?php } ?> </div> <input type="hidden" name="option" value="com_easysocial" /> <input type="hidden" name="controller" value="account" /> <input type="hidden" name="task" value="login" /> <input type="hidden" name="return" value="<?php
public static function getRemindUsernameLink() { $config = EasyBlogHelper::getConfig(); $default = JRoute::_('index.php?option=com_user&view=remind'); if (EasyBlogHelper::getJoomlaVersion() >= '1.6') { $default = JRoute::_('index.php?option=com_users&view=remind'); } switch ($config->get('main_login_provider')) { case 'easysocial': $easysocial = EasyBlogHelper::getHelper('EasySocial'); if ($easysocial->exists()) { $link = FRoute::account(array('layout' => 'forgetPassword')); } else { $link = $default; } break; default: $link = $default; break; } return $link; }
/** * Redirects users view to easysocial * * @since 1.0 * @access public * @return */ public function processUsersRedirection() { $doc = JFactory::getDocument(); if ($doc->getType() != 'html') { return; } // Check if the admin wants to enable this if (!$this->params->get('redirection', true)) { return; } // If this is registration from com_users, redirect to the appropriate page. if ($this->isUserRegistration()) { // Redirect to EasySocial's registration $url = FRoute::registration(array(), false); return $this->app->redirect($url); } // If this is username reminder, redirect to the appropriate page. if ($this->isUserRemind()) { // Redirect to EasySocial's registration $url = FRoute::account(array('layout' => 'forgetUsername'), false); return $this->app->redirect($url); } // If this is password reset, redirect to the appropriate page. if ($this->isUserReset()) { // Redirect to EasySocial's registration $url = FRoute::account(array('layout' => 'forgetPassword'), false); return $this->app->redirect($url); } // If this is password reset, redirect to the appropriate page. if ($this->isUserLogin()) { // Determine if there's any "return" url in the query string $return = JRequest::getVar('return'); if ($return) { FD::setCallback(base64_decode($return)); } // Redirect to EasySocial's registration $url = FRoute::login(array(), false); return $this->app->redirect($url); } // If this is password reset, redirect to the appropriate page. if ($this->isUserProfile()) { // Redirect to EasySocial's registration $url = FRoute::profile(array(), false); return $this->app->redirect($url); } }
font-weight:bold; margin-top: 20px; padding:10px 15px; line-height:20px; color:#fff;font-size: 12px; background-color: #83B3DD; background-image: linear-gradient(to bottom, #91C2EA, #6D9CCA); background-repeat: repeat-x; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); border-style: solid; border-width: 1px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05); border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; " href="<?php echo FRoute::account(array('layout' => 'confirmReset', 'external' => true)); ?> "><?php echo JText::_('COM_EASYSOCIAL_EMAILS_RESET_PASSWORD'); ?> </a> <p style="margin-top: 20px;"> <?php echo JText::_('COM_EASYSOCIAL_EMAILS_FORGET_USERNAME_FOOTPRINT'); ?> </p> </td> </tr>
/** * Post process after user enters the verification code * * @since 1.0 * @access public */ public function confirmResetPassword() { // Enqueue the message FD::info()->set($this->getMessage()); if ($this->hasErrors()) { $redirect = FRoute::account(array('layout' => 'confirmReset'), false); return $this->redirect($redirect); } $redirect = FRoute::account(array('layout' => 'completeReset'), false); $this->redirect($redirect); }