Conversation
|
Hi there, I agree that the password field should be moved to atk4/data. |
bbda325 to
89951c9
Compare
| protected function loadFromCache(): void | ||
| { | ||
| if (isset($this->cache->getData()[$this->user->id_field])) { | ||
| $this->user = $this->user->getModel()->load($this->cache->getData()[$this->user->id_field]); |
There was a problem hiding this comment.
@DarkSide666 change in https://github.com/atk4/login/pull/66/files#diff-ffd530ee6eec28dabbc93a431fb04b89cb75a01c93f911e22d46aeeaf17d683eR214 was breaking tests as model was never loaded before and thus complete dirty data were null. Was this change intended and what is the reason to cache the whole User model's data? (as they are not locked in db, they will be always overwritten this way).
The change done now by me is to fix the dirty data calc, but it does not fix the wrong caching described above.
e996eb5 to
d113b8d
Compare
9b1cc7d to
bbd9b69
Compare
9373f18 to
51c81cb
Compare
74b7f02 to
31c6556
Compare
31c6556 to
6bad1f5
Compare
68d88de to
4126917
Compare
No description provided.