-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
logoutSessionsOnSensitiveChanges Warning #3175
Comments
Sorry - this was LoopBack 2, not 3. |
Do you know how to configure the json file of the User models and whether should we add into user.json in loopback modules or the persisted models we create? If the former, I am afraid it will warn again as long as I update loopback for fixing some bugs. |
Well since this is apparently gone in 3 (I believe), it may be a non-issue. |
I solved this problem by adding |
@cfjedimaster it makes me wonder, does your |
Well to be clear, if this is gone in 3, we can close it, right? |
LoopBack 2.x is still a supported version and I think most people have not migrated to 3.x yet. Therefore the issue may affect many LoopBack users, IMO it's worth investigating and fixing. |
Hi, @bajtos . When I set
Then I removed this line. Interestingly, the newest version did not warn again. But I think this |
I'll check - I'm on the road this week though so its going to be hard to find time. |
@zealseeker please open a new issue and provide steps to reproduce the issue - see http://loopback.io/doc/en/contrib/Reporting-issues.html#bug-report |
Bug/Feature request
LoopBack 2 now adds a warning when you use a User model and do NOT set logoutSessionsOnSensitiveChanges to true. This is fine and all, but you get the warning twice - once for User, and once for your model that extends User. While it is possible that a person may use User, since we always tell people to extend it, the warning should be disable for the User model itself.
Expected result
Don't warn twice.
The text was updated successfully, but these errors were encountered: