File modules/cms/action/profile/ProfileConfirmmailAction.class.php

Last commit: Sat Oct 17 02:16:28 2026 +0200	Jan Dankert	Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths.
1 <?php 2 namespace cms\action\profile; 3 use cms\action\Method; 4 use cms\action\ProfileAction; 5 use language\Messages; 6 use util\exception\ValidationException; 7 use util\Session; 8 9 class ProfileConfirmmailAction extends ProfileAction implements Method { 10 11 public function post() { 12 $sessionCode = Session::get( Session::KEY_MAIL_CHANGE_CODE ); 13 $newMail = Session::get( Session::KEY_MAIL_CHANGE_MAIL ); 14 $inputRegisterCode = $this->request->getText('code'); 15 16 if ( $sessionCode == $inputRegisterCode ) 17 { 18 // Best�tigungscode stimmt �berein. 19 // E-Mail-Adresse �ndern. 20 $this->user->mail = $newMail; 21 $this->user->persist(); 22 23 $this->addNoticeFor( $this->user,Messages::SAVED ); 24 } 25 else 26 { 27 // Validation code does not match 28 throw new ValidationException('code',Messages::CODE_NOT_MATCH ); 29 } 30 31 } 32 }
Download modules/cms/action/profile/ProfileConfirmmailAction.class.php
History Sat, 17 Oct 2026 02:16:28 +0200 Jan Dankert Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths. Fri, 26 Feb 2021 01:06:01 +0100 Jan Dankert Refactoring accessing the request parameter values. Wed, 18 Nov 2020 01:46:36 +0100 Jan Dankert Refactoring of model classes: New method persist() and some other cleanups. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.