-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
fix: Accounts_LoginExpiration
being used differently on codebase
#32527
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 39affda The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #32527 +/- ##
===========================================
- Coverage 55.51% 55.49% -0.02%
===========================================
Files 2632 2632
Lines 57174 57174
Branches 11841 11841
===========================================
- Hits 31740 31730 -10
- Misses 22746 22762 +16
+ Partials 2688 2682 -6
Flags with carried forward coverage won't be shown. Click here to find out more. |
Co-authored-by: Marcos Spessatto Defendi <[email protected]>
Proposed changes (including videos or screenshots)
Issue(s)
https://rocketchat.atlassian.net/browse/SUP-574
Steps to test or reproduce
Further comments
Fixed an inconsistent evaluation of the
Accounts_LoginExpiration
setting over the codebase. In some places, it was being used as milliseconds while in others as days. Invalid values produced different results. A helper function was created to centralize the setting validation and the proper value being returned to avoid edge cases.Negative values may be saved on the settings UI panel but the code will interpret any negative, NaN or 0 value to the default expiration which is 90 days.