コード例 #1
0
ファイル: Page.php プロジェクト: OpenStackweb/openstack-org
 public function LoginForm()
 {
     $back_url = '';
     if ($this->request->getVar('BackURL')) {
         $back_url = $this->request->getVar('BackURL');
     }
     return OpenStackIdFormsFactory::buildLoginForm($this, $back_url);
 }
コード例 #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;
 }