Skip to content
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

Show 'Unknown' instead of 'false' if other browser session Useragent details are not matched in library #934

Merged
merged 2 commits into from
Dec 30, 2021

Conversation

jonhassall
Copy link
Contributor

This pull request fixes an incorrect behavior of the 'Logout Other Browser Sessions' session list. If any of the browser's details are not matched in the jenssegers/agent library, currently it is displayed as 'false,' directly showing the output of the library which intentionally returns false if there is no match.

This pull request changes this to show as 'Unknown.' This seems a suitable term, as it is searching known browsers.

As requested in the contribution guide, I made this change in both Inertia and Livewire.

Screenshot before
Screenshot after

@taylorotwell taylorotwell merged commit 190441d into laravel:2.x Dec 30, 2021
GeoSot pushed a commit to GeoSot/jetstream that referenced this pull request Jan 27, 2022
…details are not matched in library (laravel#934)

* Show 'Unknown' instead of 'false' if other browser session useragent details are not matched in library

* Show 'Unknown' instead of 'false' if other browser session useragent details are not matched in library (Livewire)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants