Exemplo n.º 1
0
 public function forgotpassword()
 {
     $login = new SecureSiteBase();
     $login->setFramework(new SMVC\SecureSite\Bootstrap\SecurityForms());
     if (isset($_POST['emailAddress'])) {
         $mailer = 'InternalMailer';
         $mailer = ROOT_NAMESPACE . '\\Emails\\' . $mailer . '\\Emails';
         //Fully quallified namespace
         $email = new EmailBase(new $mailer());
         $email->transactionalEmail('*****@*****.**', 'Temporary password', $login->tempPasswordEmailBody($_POST['emailAddress']));
     }
     $this->view('pages/landingPage', array('form' => $login->passwordReminderForm()));
 }
Exemplo n.º 2
0
 public function index($passwordReminder = null)
 {
     $login = new SecureSiteBase();
     $login->setFramework(new SMVC\SecureSite\Bootstrap\SecurityForms());
     $this->view('pages/landingPage', array('form' => $passwordReminder != null ? $login->loginForm(array('token' => $passwordReminder)) : $login->passwordReminderForm(), 'temp' => !isset($_POST['emailAddress']) ? '' : $login->getTempPasswordLink($_POST['emailAddress'])));
 }