From 32280c158fa2c1eda04e63b914cc47d4050c0e08 Mon Sep 17 00:00:00 2001 From: fosterfarrell9 <28628554+fosterfarrell9@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:23:31 +0100 Subject: [PATCH] disable IP adress logging in trackable module of devise --- app/models/user.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 479346276..392d1d29f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -751,6 +751,19 @@ def can_update_personell?(lecture) return false end + # make sure that no IP adress data are stored via the :trackable module + # of Devise + # see https://github.com/heartcombo/devise/issues/4849#issuecomment-534733131 + + def current_sign_in_ip + end + + def last_sign_in_ip=(_ip) + end + + def current_sign_in_ip=(_ip) + end + private def set_defaults