Vorlent / cozycast

movie night over the internet
Other
5 stars 3 forks source link

Implement kicking and banning users #71

Open Vorlent opened 4 years ago

Vorlent commented 4 years ago

Clicking on avatars should open a profile menu for other users with a kick and ban button.

The ban should be IP based for now.

Vorlent commented 4 years ago

I added rudimentary support but without user accounts it is trivial to bypass the ban because relevant user details are stored in local storage and can always be deleted. Additionally I'm having trouble getting a token with ROLE_ADMIN which means I can't actually use the feature yet. I have also decided against kicking as a separate feature simply because banning with a low expiration of 10 min should be equivalent.