Rev 566 | Rev 570 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 566 | Rev 567 | ||
---|---|---|---|
Line 100... | Line 100... | ||
100 | public function raLogoutAll() { |
100 | public function raLogoutAll() { |
101 | return $this->getAuthContentStore()->raLogoutAll(); |
101 | return $this->getAuthContentStore()->raLogoutAll(); |
102 | } |
102 | } |
103 | 103 | ||
104 | public function loggedInRaList() { |
104 | public function loggedInRaList() { |
- | 105 | if (OIDplus::authUtils()->forceAllLoggedOut()) { |
|
- | 106 | return array(); |
|
- | 107 | } else { |
|
105 | return $this->getAuthContentStore()->loggedInRaList(); |
108 | return $this->getAuthContentStore()->loggedInRaList(); |
106 | } |
109 | } |
- | 110 | } |
|
107 | 111 | ||
108 | public function isRaLoggedIn($email) { |
112 | public function isRaLoggedIn($email) { |
109 | return $this->getAuthContentStore()->isRaLoggedIn($email); |
113 | return $this->getAuthContentStore()->isRaLoggedIn($email); |
110 | } |
114 | } |
111 | 115 | ||
Line 140... | Line 144... | ||
140 | } |
144 | } |
141 | return strcmp(sha3_512($s_salt.$password, true), base64_decode($hash)) === 0; |
145 | return strcmp(sha3_512($s_salt.$password, true), base64_decode($hash)) === 0; |
142 | } |
146 | } |
143 | 147 | ||
144 | public function isAdminLoggedIn() { |
148 | public function isAdminLoggedIn() { |
- | 149 | if (OIDplus::authUtils()->forceAllLoggedOut()) { |
|
- | 150 | return false; |
|
- | 151 | } else { |
|
145 | return $this->getAuthContentStore()->isAdminLoggedIn(); |
152 | return $this->getAuthContentStore()->isAdminLoggedIn(); |
146 | } |
153 | } |
- | 154 | } |
|
147 | 155 | ||
148 | // Authentication keys for validating arguments (e.g. sent by mail) |
156 | // Authentication keys for validating arguments (e.g. sent by mail) |
149 | 157 | ||
150 | public static function makeAuthKey($data) { |
158 | public static function makeAuthKey($data) { |
151 | $data = OIDplus::baseConfig()->getValue('SERVER_SECRET') . '/AUTHKEY/' . $data; |
159 | $data = OIDplus::baseConfig()->getValue('SERVER_SECRET') . '/AUTHKEY/' . $data; |