-
- Downloads
fixes #2448 by reworking the logic for determining when it's a users first...
fixes #2448 by reworking the logic for determining when it's a users first login. we no longer lookup the first session for the user because it's possible they logged out and deleted their only session, then logged in to create their "first" session. we now use the :last_login timestamp on the User record, which is more consistent and accurate.
Showing
- src/metabase/api/session.clj 7 additions, 7 deletionssrc/metabase/api/session.clj
- src/metabase/api/setup.clj 1 addition, 1 deletionsrc/metabase/api/setup.clj
- src/metabase/events/activity_feed.clj 1 addition, 1 deletionsrc/metabase/events/activity_feed.clj
- src/metabase/events/last_login.clj 0 additions, 1 deletionsrc/metabase/events/last_login.clj
- src/metabase/models/session.clj 2 additions, 2 deletionssrc/metabase/models/session.clj
- test/metabase/models/session_test.clj 4 additions, 1 deletiontest/metabase/models/session_test.clj
Please register or sign in to comment