איפוס כניסות משתמש

Hi,

Via the console or elsewhere, is it possible to reset all user logins, IP address links and anything else? An admin recently impersonated system and we’d like to erase this IP login, login session and everything related.

Thanks.

You want to delete/reset the user or system?

לייק 1

You can delete the ip address, though I would need to look at the source to figure it out.

What else do you want to delete?

What problem are you solving?

2 לייקים
cd /var/discourse
./launcher enter app
rails c
User.find(-1).update(ip_address: nil, last_seen_at: nil)

And so on.

2 לייקים

Thank you!

Although, I get the error bash: syntax error near unexpected token '-1' - any way to fix this?

Forgot to enter rails.

לייק 1

You have to get into rails. I edited my post.

לייק 1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.