src/Chamilo/PageBundle/Entity/User.php 1 location
|
@@ 2117-2128 (lines=12) @@
|
| 2114 |
|
return !$this->locked; |
| 2115 |
|
} |
| 2116 |
|
|
| 2117 |
|
public function isCredentialsNonExpired() |
| 2118 |
|
{ |
| 2119 |
|
if (true === $this->credentialsExpired) { |
| 2120 |
|
return false; |
| 2121 |
|
} |
| 2122 |
|
|
| 2123 |
|
if (null !== $this->credentialsExpireAt && $this->credentialsExpireAt->getTimestamp() < time()) { |
| 2124 |
|
return false; |
| 2125 |
|
} |
| 2126 |
|
|
| 2127 |
|
return true; |
| 2128 |
|
} |
| 2129 |
|
|
| 2130 |
|
public function isCredentialsExpired() |
| 2131 |
|
{ |
src/Chamilo/UserBundle/Entity/User.php 1 location
|
@@ 2191-2202 (lines=12) @@
|
| 2188 |
|
return !$this->locked; |
| 2189 |
|
} |
| 2190 |
|
|
| 2191 |
|
public function isCredentialsNonExpired() |
| 2192 |
|
{ |
| 2193 |
|
if (true === $this->credentialsExpired) { |
| 2194 |
|
return false; |
| 2195 |
|
} |
| 2196 |
|
|
| 2197 |
|
if (null !== $this->credentialsExpireAt && $this->credentialsExpireAt->getTimestamp() < time()) { |
| 2198 |
|
return false; |
| 2199 |
|
} |
| 2200 |
|
|
| 2201 |
|
return true; |
| 2202 |
|
} |
| 2203 |
|
|
| 2204 |
|
public function isCredentialsExpired() |
| 2205 |
|
{ |