@@ -43,9 +43,9 @@ |
||
43 | 43 | |
44 | 44 | public function process(\ArrayAccess $credentials): void |
45 | 45 | { |
46 | - $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : '' ; |
|
47 | - $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2)) : $name ; |
|
48 | - $stamp = $credentials->offsetExists(static::INPUT_STAMP) ? intval(strval($credentials->offsetGet(static::INPUT_STAMP))) : 0 ; |
|
46 | + $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : ''; |
|
47 | + $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2)) : $name; |
|
48 | + $stamp = $credentials->offsetExists(static::INPUT_STAMP) ? intval(strval($credentials->offsetGet(static::INPUT_STAMP))) : 0; |
|
49 | 49 | |
50 | 50 | $wantedUser = $this->certAuthenticator->getDataOnly(strval($name)); |
51 | 51 | $wantedCert = $this->certAuthenticator->getCertData(strval($name)); |
@@ -52,9 +52,9 @@ |
||
52 | 52 | |
53 | 53 | public function process(\ArrayAccess $credentials): void |
54 | 54 | { |
55 | - $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : '' ; |
|
56 | - $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2) ): $name ; |
|
57 | - $stamp = $credentials->offsetExists(static::INPUT_STAMP) ? intval(strval($credentials->offsetGet(static::INPUT_STAMP))) : 0 ; |
|
55 | + $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : ''; |
|
56 | + $name = $credentials->offsetExists(static::INPUT_NAME2) ? strval($credentials->offsetGet(static::INPUT_NAME2)) : $name; |
|
57 | + $stamp = $credentials->offsetExists(static::INPUT_STAMP) ? intval(strval($credentials->offsetGet(static::INPUT_STAMP))) : 0; |
|
58 | 58 | |
59 | 59 | $wantedUser = $this->certAuthenticator->getDataOnly(strval($name)); |
60 | 60 | $wantedCert = $this->certAuthenticator->getCertData(strval($name)); |
@@ -41,8 +41,8 @@ |
||
41 | 41 | |
42 | 42 | public function process(\ArrayAccess $credentials): void |
43 | 43 | { |
44 | - $name = $this->server->offsetExists(static::INPUT_NAME) ? strval($this->server->offsetGet(static::INPUT_NAME)) : '' ; |
|
45 | - $digest = $this->server->offsetExists(static::INPUT_PASS) ? strval($this->server->offsetGet(static::INPUT_PASS)) : '' ; |
|
44 | + $name = $this->server->offsetExists(static::INPUT_NAME) ? strval($this->server->offsetGet(static::INPUT_NAME)) : ''; |
|
45 | + $digest = $this->server->offsetExists(static::INPUT_PASS) ? strval($this->server->offsetGet(static::INPUT_PASS)) : ''; |
|
46 | 46 | $wantedUser = $this->certAuthenticator->getDataOnly(strval($name)); |
47 | 47 | $wantedCert = $this->certAuthenticator->getCertData(strval($name)); |
48 | 48 | if ($wantedUser && $wantedCert && $digest) { |
@@ -16,10 +16,10 @@ |
||
16 | 16 | { |
17 | 17 | /** @var acc_interfaces\IUser|acc_interfaces\IUserCert|null */ |
18 | 18 | protected static $authenticator = null; |
19 | - protected static ?acc_interfaces\IAuth $auth = null; |
|
20 | - protected static ?acc_interfaces\IProcessGroups $groups = null; |
|
21 | - protected static ?acc_interfaces\IProcessClasses $classes = null; |
|
22 | - protected static ?acc_interfaces\IProcessAccounts $accounts = null; |
|
19 | + protected static ? acc_interfaces\IAuth $auth = null; |
|
20 | + protected static ? acc_interfaces\IProcessGroups $groups = null; |
|
21 | + protected static ? acc_interfaces\IProcessClasses $classes = null; |
|
22 | + protected static ? acc_interfaces\IProcessAccounts $accounts = null; |
|
23 | 23 | |
24 | 24 | protected static ?AuthTree $authTree = null; |
25 | 25 |