Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
PasswordRemindingLogic | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
validateImpl | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
executeImpl | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Models\Domain\Page\Password; |
6 | |
7 | use PeServer\App\Models\AppCryptography; |
8 | use PeServer\App\Models\Dao\Entities\PluginsEntityDao; |
9 | use PeServer\App\Models\Dao\Entities\UsersEntityDao; |
10 | use PeServer\App\Models\AppEmailInformation; |
11 | use PeServer\App\Models\Domain\Page\PageLogicBase; |
12 | use PeServer\App\Models\Domain\Page\SessionAnonymousTrait; |
13 | use PeServer\App\Models\SessionKey; |
14 | use PeServer\Core\Collection\Arr; |
15 | use PeServer\Core\Http\HttpStatus; |
16 | use PeServer\Core\Mvc\LogicCallMode; |
17 | use PeServer\Core\Mvc\LogicParameter; |
18 | use PeServer\Core\Text; |
19 | |
20 | class PasswordRemindingLogic extends PageLogicBase |
21 | { |
22 | use SessionAnonymousTrait; |
23 | |
24 | public function __construct(LogicParameter $parameter, private AppEmailInformation $appEmailInformation) |
25 | { |
26 | parent::__construct($parameter); |
27 | } |
28 | |
29 | #region PageLogicBase |
30 | |
31 | protected function validateImpl(LogicCallMode $callMode): void |
32 | { |
33 | $this->throwHttpStatusIfNotPasswordReminder(HttpStatus::NotFound); |
34 | } |
35 | |
36 | protected function executeImpl(LogicCallMode $callMode): void |
37 | { |
38 | //TODO: AccountSignupNotifyLogic と同じ処理すべきじゃないかなぁ |
39 | $this->setValue('email', $this->appEmailInformation); |
40 | } |
41 | |
42 | #endregion |
43 | } |