New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add user sessions page #3278
base: develop
Are you sure you want to change the base?
Add user sessions page #3278
Conversation
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
$user_sessions_list = []; | ||
|
||
// TODO: Should we display all sessions, or just active ones? Over time, the list could get very long if we display all sessions. | ||
// Not really any reason to show inactive ones, since they can't action on them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Showing inactive ones can help us find if the account has been compromised or not, Hiding sessions could miss unwanted logins
$sessions = $user->getActiveSessions(); | ||
$sessions_list = []; | ||
// TODO: Should we display all sessions, or just active ones? Over time, the list could get very long if we display all sessions. | ||
// Not really any reason to show inactive ones, since they can't action on them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Showing inactive ones can help us find if the account has been compromised or not, Hiding sessions could miss unwanted logins
Replaces #3104