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

#1524 Drop old TWO_FACTOR hash algorithm, force new password to be input #1576

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ljacqu
Copy link
Member

@ljacqu ljacqu commented May 20, 2018

Deprecates TWO_FACTOR from being configured as the hash algorithm and forces players with a TWO_FACTOR password to set a new password with /register when they log in. I don't know how many servers actually use this so I went with kicking a user after successfully setting a password.

Open question:

  • Migrate the two factor secret to the new totp column?

- Deprecate TWO_FACTOR
- Remove two factor registration executor
- Force player to set a new password if an old TWO_FACTOR password has been found
@ljacqu ljacqu requested review from games647, hex3l and sgdc3 May 20, 2018 10:53
@games647
Copy link
Member

There could be some server that use this method for 2FA in addition to Mojang authentication, but maybe in this case it might be better to choose a dedicated 2FA plugin or what do you think?

@ljacqu
Copy link
Member Author

ljacqu commented May 21, 2018

Hmm that's a good point. We could have a "mode" in the future that would specify when/how we require a password or a 2FA token, or at least configurable in the config.yml. But for now I'd like to remove the TWO_FACTOR hash method because it's not a hash method and so has various issues (can't migrate away from it as with the other hashes, /changepassword doesn't work, special case when registering, etc.)

@sgdc3
Copy link
Member

sgdc3 commented Sep 9, 2018

@ljacqu any news?

@ljacqu
Copy link
Member Author

ljacqu commented Sep 11, 2018

Alright, picking this one up again and making it happen in the course of the week ;)

…a-hash

# Conflicts:
#	src/main/java/fr/xephi/authme/settings/SettingsMigrationService.java
@sgdc3
Copy link
Member

sgdc3 commented Nov 1, 2018

@ljacqu just as a reminder ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants