Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor settings controllers #14767

Merged
merged 1 commit into from
Sep 11, 2020
Merged

Refactor settings controllers #14767

merged 1 commit into from
Sep 11, 2020

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Sep 9, 2020

  • Disallow suspended accounts from revoking sessions and apps
  • Allow suspended accounts to access exports

@Gargron Gargron added the refactoring Improving code quality label Sep 9, 2020
@Gargron Gargron force-pushed the refactor-settings-controllers branch 2 times, most recently from 52ffe13 to 7d4b7ad Compare September 9, 2020 22:23
@Gargron Gargron marked this pull request as ready for review September 9, 2020 22:26
@Gargron Gargron force-pushed the refactor-settings-controllers branch from 7d4b7ad to 603d633 Compare September 9, 2020 23:23
@SuperSandro2000
Copy link
Contributor

Disallow suspended accounts from revoking authorized applications, browser sessions, or changing 2FA settings

Why tough? If you are suspended you should still be allowed to revoke access from everything.

@Gargron
Copy link
Member Author

Gargron commented Sep 10, 2020

If you are suspended, we retain some data to prevent ban evasions, e.g. you can’t sign up with the identical email address anymore. IPs and used apps may provide further insight into finding alternative accounts, so it doesn’t make sense that the suspended user can simply clean up all the tracks.

@SuperSandro2000
Copy link
Contributor

SuperSandro2000 commented Sep 10, 2020

you can’t sign up with the identical email address anymore.

It's the part after the + filtered?

IPs are most of the time pretty useless. Mine for example changes every day and I can easily switch it.

it doesn’t make sense that the suspended user can simply clean up all the tracks.

If my account got suspended by action taken on another device which maybe got stolen or the session cookie was phished etc. I can't revoke that device. I should be able to revoke those sessions without cleaning up all my tracks.

Also revoking or disabling 2FA does not clean up any track or provides any useful information to anyone. It is just a measure which maybe locks people out of their account without any real advantage.

@Gargron
Copy link
Member Author

Gargron commented Sep 10, 2020

Why should you be able to change 2fa settings if you’re not allowed to change your password or email? It makes more sense to me to keep it consistent: suspended means the account’s done, no further changes.

@ClearlyClaire
Copy link
Contributor

Before I actually review: I see no issue with being able to change 2FA settings or password when suspended. It would also be good to be able to revoke active sessions and change e-mail address, but I also understand how this is tied with the anti-abuse features so I think that's an acceptable compromise.

- Disallow suspended accounts from revoking sessions and apps
- Allow suspended accounts to access exports
@Gargron Gargron force-pushed the refactor-settings-controllers branch from 603d633 to a055990 Compare September 11, 2020 18:42
@Gargron Gargron merged commit 4e4b3a0 into master Sep 11, 2020
@Gargron Gargron deleted the refactor-settings-controllers branch September 11, 2020 18:56
thenameisnigel-old pushed a commit to ChatterlyOSE/Chatterly that referenced this pull request Sep 18, 2020
- Disallow suspended accounts from revoking sessions and apps
- Allow suspended accounts to access exports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Improving code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants