Exemple #1
0
 private function GetUsername() : \string
 {
     if (isset($_POST[self::$formUser])) {
         return $_POST[self::$formUser];
     }
     return RegistrationCookiePersistance::Retrieve();
 }
Exemple #2
0
 public function RegistrationSuccess()
 {
     RegistrationCookiePersistance::Set($this->GetUsername());
     CookieMessageView::Set("Registered new user.");
     $this->navigationView->GoToLogin();
 }