إعادة تعيين دخولات المستخدم

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.