Reset user logins

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 Like

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 Likes
cd /var/discourse
./launcher enter app
rails c
User.find(-1).update(ip_address: nil, last_seen_at: nil)

And so on.

2 Likes

Thank you!

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

Forgot to enter rails.

1 Like

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

1 Like

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