src/Chamilo/PageBundle/Entity/User.php 1 location
|
@@ 2026-2037 (lines=12) @@
|
| 2023 |
|
return !$this->locked; |
| 2024 |
|
} |
| 2025 |
|
|
| 2026 |
|
public function isCredentialsNonExpired() |
| 2027 |
|
{ |
| 2028 |
|
if (true === $this->credentialsExpired) { |
| 2029 |
|
return false; |
| 2030 |
|
} |
| 2031 |
|
|
| 2032 |
|
if (null !== $this->credentialsExpireAt && $this->credentialsExpireAt->getTimestamp() < time()) { |
| 2033 |
|
return false; |
| 2034 |
|
} |
| 2035 |
|
|
| 2036 |
|
return true; |
| 2037 |
|
} |
| 2038 |
|
|
| 2039 |
|
public function isCredentialsExpired() |
| 2040 |
|
{ |
src/Chamilo/UserBundle/Entity/User.php 1 location
|
@@ 2144-2155 (lines=12) @@
|
| 2141 |
|
return !$this->locked; |
| 2142 |
|
} |
| 2143 |
|
|
| 2144 |
|
public function isCredentialsNonExpired() |
| 2145 |
|
{ |
| 2146 |
|
if (true === $this->credentialsExpired) { |
| 2147 |
|
return false; |
| 2148 |
|
} |
| 2149 |
|
|
| 2150 |
|
if (null !== $this->credentialsExpireAt && $this->credentialsExpireAt->getTimestamp() < time()) { |
| 2151 |
|
return false; |
| 2152 |
|
} |
| 2153 |
|
|
| 2154 |
|
return true; |
| 2155 |
|
} |
| 2156 |
|
|
| 2157 |
|
public function isCredentialsExpired() |
| 2158 |
|
{ |