Ejemplo n.º 1
0
 public function LoginForm()
 {
     $back_url = '';
     if ($this->request->getVar('BackURL')) {
         $back_url = $this->request->getVar('BackURL');
     }
     return OpenStackIdFormsFactory::buildLoginForm($this, $back_url);
 }
Ejemplo n.º 2
0
 /**
  * Creates a login form. Replaces the hardcoded Security/ link with the link
  * to this controller
  *
  * @return  MemberLoginForm
  */
 public function LoginForm()
 {
     $back_url = $this->CurrentCallForSpeakersPageUrl();
     if (is_null($back_url)) {
         return $this->httpError(404, "Summit Speakers Not Found!");
     }
     if ($this->request->getVar('BackURL')) {
         $back_url = $this->request->getVar('BackURL');
     }
     $form = OpenStackIdFormsFactory::buildLoginForm($this, $back_url);
     $form->setActions(FieldList::create(new FormAction('dologin', _t('Member.BUTTONLOGIN', "Log in")), new LiteralField('forgotPassword', '<p id="ForgotPassword"><a href="summit-login/lostpassword">' . _t('Member.BUTTONLOSTPASSWORD', "I've lost my password") . '</a></p>')));
     return $form;
 }