class RecoveryCodeService implements SettingsDependent, HasCleanup {

    public String generateCode(String player) {
        String code = RandomStringUtils.generateHex(recoveryCodeLength);

        playerTries.put(player, recoveryCodeMaxTries);
        recoveryCodes.put(player, code);
        return code;
    }

    @Inject  RecoveryCodeService(Settings settings);

}