grafana/pkg/services/user/userimpl
Jo ed780ce0e9
Auth: Fix Last Seen being updated on every request (#72036)
* make sure LastSeen hook has information to decide if update is necessary

* make user service check if it should update the user's last seen

* do not run last seen hook if is a login request

* make service return error when last seen is up to date

* fix err

* Update pkg/services/contexthandler/contexthandler.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* fix golint

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-07-24 16:37:35 +02:00
..
store_test.go Users: Enable case insensitive login by default (#66134) 2023-04-28 16:38:58 +01:00
store.go Separate authn flow from analytics (#68327) 2023-05-15 18:38:54 +02:00
time.go chore: remove CreateUser from sqlstore & replace with userService.CreateUserForTests (#59910) 2022-12-07 11:03:22 -05:00
user_test.go Auth: Fix Last Seen being updated on every request (#72036) 2023-07-24 16:37:35 +02:00
user.go Auth: Fix Last Seen being updated on every request (#72036) 2023-07-24 16:37:35 +02:00