1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file is part of the Extension "fe_change_pwd" for TYPO3 CMS. |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please read the |
9
|
|
|
* LICENSE.txt file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace Derhansen\FeChangePwd\Domain\Model\Dto; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* Class ChangePassword |
16
|
|
|
*/ |
17
|
|
|
class ChangePassword |
18
|
|
|
{ |
19
|
|
|
protected string $password1 = ''; |
20
|
|
|
protected string $password2 = ''; |
21
|
|
|
protected string $currentPassword = ''; |
22
|
|
|
protected string $feUserPasswordHash = ''; |
23
|
|
|
protected string $changeHmac = ''; |
24
|
|
|
protected bool $skipCurrentPasswordCheck = false; |
25
|
|
|
|
26
|
|
|
public function getPassword1(): string |
27
|
|
|
{ |
28
|
|
|
return $this->password1; |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
public function setPassword1(string $password1): void |
32
|
|
|
{ |
33
|
|
|
$this->password1 = $password1; |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
public function getPassword2(): string |
37
|
|
|
{ |
38
|
|
|
return $this->password2; |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
public function setPassword2(string $password2): void |
42
|
|
|
{ |
43
|
|
|
$this->password2 = $password2; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
public function getCurrentPassword(): string |
47
|
|
|
{ |
48
|
|
|
return $this->currentPassword; |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
public function setCurrentPassword(string $currentPassword): void |
52
|
|
|
{ |
53
|
|
|
$this->currentPassword = $currentPassword; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
public function getChangeHmac(): string |
57
|
|
|
{ |
58
|
|
|
return $this->changeHmac; |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
public function setChangeHmac(string $changeHmac): void |
62
|
|
|
{ |
63
|
|
|
$this->changeHmac = $changeHmac; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
public function getSkipCurrentPasswordCheck(): bool |
67
|
|
|
{ |
68
|
|
|
return $this->skipCurrentPasswordCheck; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
public function setSkipCurrentPasswordCheck(bool $skipCurrentPasswordCheck): void |
72
|
|
|
{ |
73
|
|
|
$this->skipCurrentPasswordCheck = $skipCurrentPasswordCheck; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
public function getFeUserPasswordHash(): string |
77
|
|
|
{ |
78
|
|
|
return $this->feUserPasswordHash; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
public function setFeUserPasswordHash(string $feUserPasswordHash): void |
82
|
|
|
{ |
83
|
|
|
$this->feUserPasswordHash = $feUserPasswordHash; |
84
|
|
|
} |
85
|
|
|
} |
86
|
|
|
|