Comments (2)
I don't know but it seems to rely on the request->getSession()->read('Auth') seems to be not working very good,
the user seems to be logged in but the request session auth is empty...
I have used
$authenticationConfig = Configure::read('Auth.AuthenticationComponent');
$this->loadComponent('Authentication.Authentication', $authenticationConfig);
in appcontroller so I can use the
$authUser = $this->Authentication->getIdentity();
in other controllers...
is it normal that session Auth is empty but the user appears to be logged in?
from users.
You should rely on the request attribute identity
instead of the session because identity may not be persisted into the session . Use $user = $this->getRequest()->getAttribute('identity');
from users.
Related Issues (20)
- CakeDC Users plugin returns full request URL instead of just path part
- Extending RBAC HOT 1
- Seeds path `/vendor/cakedc/users/config/Seeds` does not exist and cannot be created because `debug` is disabled. HOT 1
- Feature request: Make `last_login` optional through configuration HOT 6
- Missing Routes HOT 2
- '_Token' was not found in request data. HOT 4
- Login problem with extended controller HOT 2
- Customizing flash messages HOT 2
- User Console/Shell Commands Not Documented HOT 2
- CakePHP 4.5 deprecations HOT 1
- timezone for users HOT 1
- Error on dispatch event HOT 1
- Datetime formatting issue when saving last login
- Automatic login when I logout from site in cakephp 5.x HOT 2
- CakeDC/users 12 in cakephp 5.x doesn't change the users.php file to /config.users.php and gives me Html error ERR_TOO_MANY_REDIRECTS HOT 2
- Password saved in plaintext after overriding the controler HOT 1
- 2FA not appearing anymore after 14.0 update HOT 2
- Account lockout policy HOT 1
- Data too long for column 'avatar' error for some Google accounts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from users.