File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
src/Symfony/Component/Security/Core/Authentication/Token Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ public function setUser($user)
89
89
if (!$ user instanceof UserInterface) {
90
90
$ changed = true ;
91
91
} else {
92
- $ changed = ! $ this ->hasUserChanged ($ user );
92
+ $ changed = $ this ->hasUserChanged ($ user );
93
93
}
94
94
} elseif ($ user instanceof UserInterface) {
95
95
$ changed = true ;
@@ -230,41 +230,41 @@ private function hasUserChanged(UserInterface $user)
230
230
}
231
231
232
232
if ($ this ->user instanceof EquatableInterface) {
233
- return $ this ->user ->isEqualTo ($ user );
233
+ return ! $ this ->user ->isEqualTo ($ user );
234
234
}
235
235
236
236
if ($ this ->user ->getPassword () !== $ user ->getPassword ()) {
237
- return false ;
237
+ return true ;
238
238
}
239
239
240
240
if ($ this ->user ->getSalt () !== $ user ->getSalt ()) {
241
- return false ;
241
+ return true ;
242
242
}
243
243
244
244
if ($ this ->user ->getUsername () !== $ user ->getUsername ()) {
245
- return false ;
245
+ return true ;
246
246
}
247
247
248
248
if ($ this ->user instanceof AdvancedUserInterface && $ user instanceof AdvancedUserInterface) {
249
249
if ($ this ->user ->isAccountNonExpired () !== $ user ->isAccountNonExpired ()) {
250
- return false ;
250
+ return true ;
251
251
}
252
252
253
253
if ($ this ->user ->isAccountNonLocked () !== $ user ->isAccountNonLocked ()) {
254
- return false ;
254
+ return true ;
255
255
}
256
256
257
257
if ($ this ->user ->isCredentialsNonExpired () !== $ user ->isCredentialsNonExpired ()) {
258
- return false ;
258
+ return true ;
259
259
}
260
260
261
261
if ($ this ->user ->isEnabled () !== $ user ->isEnabled ()) {
262
- return false ;
262
+ return true ;
263
263
}
264
264
} elseif ($ this ->user instanceof AdvancedUserInterface xor $ user instanceof AdvancedUserInterface) {
265
- return false ;
265
+ return true ;
266
266
}
267
267
268
- return true ;
268
+ return false ;
269
269
}
270
270
}
You can’t perform that action at this time.
0 commit comments