Commit Graph
100 Commits
Author SHA1 Message Date
ljacqu ed55c77706 #1131 Correct quote type in debug statement
- Java util Logger does not escape placeholders if they are in normal single quotes
2017-03-09 08:04:47 +01:00
ljacqu 3b70492bb9 #1131 Add debug statement for country protection 2017-03-09 08:02:37 +01:00
ljacqu e43f6364ed Remove forgotten TODO in messages_bg.yml 2017-03-09 07:56:36 +01:00
ljacquandGitHub 1a445272be Merge pull request #228 from Krokit/master
IPB4 Improves
2017-03-08 19:38:37 +01:00
ljacqu 6db778387d Don't make CommandDescription final as to allow mocks
- Construction of a CommandDescription requires a lot of fields to be set. In most tests we only care about one or two fields -> having to set a lot of fields to dummy values is not very nice.
2017-03-05 11:08:43 +01:00
ljacqu 8aa573b9ed Minor fixes as found by Checkstyle 2017-03-05 10:58:29 +01:00
ljacqu ed9c5ef8a7 Readme: replace metrics with bstats, add code climate badge 2017-03-05 10:19:11 +01:00
ljacqu a64f758ee9 Add config files for Code Climate - https://codeclimate.com
- Includes customized Checkstyle configuration for AuthMe
2017-03-04 20:49:11 +01:00
ljacqu 009d82c0a9 #1120 Use empty "realname" when converting from flatfile
- FlatFile doesn't store the "realname" - all names are always in all-lowercase. Converting from flatfile to other data source should therefore not take over an auth's realname
- Adjust sample flatfile file to only have all-lowercase usernames
2017-03-04 17:52:08 +01:00
ljacqu d450d7d828 #1114 Update Turkish texts by @smt287 2017-02-28 19:27:14 +01:00
ljacqu 7185206718 Minor - use replace instead of replaceAll for non-regex replacements 2017-02-27 22:45:46 +01:00
ljacquandGitHub 57903f1c08 Merge pull request #220 from AuthMe/1073-email-cooldown
Configurable cooldown for /email recovery
2017-02-26 22:44:39 +01:00
ljacqu 8a7c8c36f2 List all subcommands if debug section is unknown 2017-02-26 14:18:18 +01:00
ljacqu a847deac16 #1075 Mail sender - allow to turn off TLS for port 25 2017-02-26 14:12:51 +01:00
ljacqu a2b8ca683d Add tests for lazy tag replacement 2017-02-25 23:37:15 +01:00
ljacqu 33c4a4690f #1073 Email recovery delay: update project files following new messages & config 2017-02-25 22:42:23 +01:00
ljacqu c197a330f3 #1073 Add delay to email recovery command
- Add configurable cooldown period after sending an email for /email recovery
- Change ExpiringMap to remove expired entries (like ExpiringSet)
- Create method to translate durations via the messages file
2017-02-25 22:41:49 +01:00
ljacqu a4b440bcca Separate email preparation and email sending into separate classes
- SendMailSSL keeps on handling the technical details for sending mails, while EmailService offers methods to other classes and worries about generating the correct email content
2017-02-25 20:14:58 +01:00
ljacqu 72c5cfac68 Create Duration class and ExpiringSet#getExpiration (prep for #1073)
- Move expiring collections to util.expiring package
- Change ExpiringSet to remove expired entries during normal calls
2017-02-25 17:25:25 +01:00
ljacqu 4edb4e68c2 #1104 Whitelist sensitive commands also when used with "authme:" prefix 2017-02-21 22:51:45 +01:00
ljacqu ee51bb3971 Minor cleanups
- Remove forgotten test assertion
- Make utils class final
- Change RandomString to use char array
2017-02-20 22:20:48 +01:00
ljacqu 922101d755 #1104 Filter all sensitive command aliases in console filters 2017-02-20 22:09:36 +01:00
ljacqu 18d8186804 #1026 List all available tags for commands.yml in comment 2017-02-20 21:18:13 +01:00
ljacqu 57ca81f2ba #1102 commands.yml file should not have any commands by default 2017-02-20 21:11:57 +01:00
ljacqu 39395836b4 #949 Add configurable timeout for captcha count 2017-02-19 11:50:06 +01:00
ljacqu 510826d268 Add manifest file to gitignore 2017-02-19 11:34:56 +01:00
ljacqu ca708e23cd #949 Create ExpiringSet, integrate into SessionManager 2017-02-19 09:06:15 +01:00
ljacqu 7b3bd3f4ea Make the Travis build great again
Curious that only TravisCI has issues with some lambda code creating a map. Both CircleCI and our project Jenkins are happy with it. The same JDK is configured for TravisCI and CircleCI, too...
2017-02-18 23:00:19 +01:00
ljacqu 152d1dc216 #949 Created TimedCounter + implement it in TempbanManager 2017-02-18 22:50:30 +01:00
ljacqu ef1d006cdf #949 Create expiring map type + integrate it into recovery code service 2017-02-18 21:31:37 +01:00
ljacqu 6937dd37fb #1034 Create subcommand to send test email
- Add test email feature
- Change debug command to lazily instantiate its subcommands
2017-02-18 17:53:34 +01:00
ljacqu c9b66183de Fix command mapping for /authme:unregister etc. 2017-02-18 15:56:08 +01:00
ljacqu e3426cd731 Display hint when legacy jar should be used (cf. #1099) 2017-02-18 15:13:26 +01:00
ljacqu 7c1a9062ba #761 Simplify auth group handling 2017-02-15 20:05:14 +01:00
ljacqu d2fccdeb80 Update Injector and create injectable object factory
- Using e.g. Factory<Converter> instead of the injector directly makes its purpose more specific and disallows any future abuse of the injector's functions
2017-02-05 16:52:35 +01:00
ljacqu 8ae06ed480 Minor improvements to config layout
- Change placement and comment of settings.restrictions.banUnsafedIP to make it clear that it only bans unknown IPs using a restricted username
- Move "MySQL use SSL" option outside of the column options
2017-02-05 13:48:24 +01:00
ljacqu 3eab42ae68 Remove obsolete "session expires on IP change" config
- Session always expire on IP change; the config only controlled whether an error message was shown or not
2017-02-05 13:40:11 +01:00
ljacqu 2b1a97e959 #761 Fix removal and restoration of primary permission group
- Improve how a player is being switched between permission groups (add new group before removing old one)
- Remove group handling logic from LimboCache: AuthGroupHandler is now solely responsible for changing the player's permission group
2017-02-05 13:12:04 +01:00
ljacqu 49f7e47645 Add more debug log flavors to ConsoleLogger 2017-02-05 13:09:38 +01:00
ljacqu f6c560cbbe Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 761-permission-groups 2017-02-04 23:05:31 +01:00
ljacqu 20cd9e9588 #1085 Improve of help translation files
- Avoid logging an error if a help_{lang}.yml file does not exist in the JAR
- No longer suggest /authme messages for updating the help translation
- Create consistency test to ensure that all help_{lang}.yml files in the JAR have entries for all help sections / messages / default permissions
2017-02-04 22:00:53 +01:00
ljacqu 5ad528d5d9 Fix Javadoc errors (as seen in Jenkins build) 2017-02-04 11:35:43 +01:00
ljacqu f6b08ece68 Trivial code householding
- Convert field to local variable
- Remove unused constructor parameter
- Move limbo class into limbo package
2017-01-30 21:53:00 +01:00
ljacqu 24162ad94b #1034 Create debug command structure + utility to see permission groups
- Relevant to current work... :)
2017-01-29 19:47:14 +01:00
ljacqu 350ef9b5e6 PermissionHandlers: add default methods for trivial duplications
- Add easy default methods on PermissionHandler interface (override whenever there's a better way!)
- Change getGroups() signature to return a Collection instead of a List
2017-01-29 18:16:17 +01:00
ljacqu 95945ffd22 #761 Improve permissions group support
- Drop one auth group type in favor of three: logged in, registered but not logged in, and unregistered
- Move  properties to same parent path
2017-01-29 17:44:06 +01:00
ljacqu bba35944b9 Merge branch '5.3-DEV' of https://github.com/AuthMe-Team/AuthMeReloaded
Conflicts:
	pom.xml
2017-01-29 14:45:42 +01:00
ljacquandGabriele C 89c70ff447 #1026 Add more tags for forced commands (lazily replaced) (#214)
* #1026 Add more tags for forced commands (lazily replaced)
- Extract lazy replacement of tags to its own class
- Implement wrapper to replace a String property within an object
  - Use wrapper in command manager and add new tags

* Make argument type generic in lazy tags util
2017-01-29 13:54:37 +01:00
ljacqu 12566f03ef Fix country code link in config comment 2017-01-29 12:40:20 +01:00
ljacqu 7578247085 Write tests for BukkitService 2017-01-24 21:39:01 +01:00
ljacqu 56017c81d0 Minor - don't perform registration settings migration if old path doesn't exist
- Migration was otherwise performed if config.yml was blank, which produces confusing output
2017-01-22 13:14:26 +01:00
ljacqu e17b1f0fdf #1019 Web integration demo: fix username and realname assignments
- username column is all lowercase, realname column has the proper casing
2017-01-22 12:34:32 +01:00
ljacqu aa64f96466 #1019 Add email field to web integration sample 2017-01-22 11:17:31 +01:00
ljacqu 367380265e #1015 Distinguish player-dependent tags from "simple" tags 2017-01-22 10:52:51 +01:00
ljacqu 811bdee128 #1015 Implement lazy replace of tags for welcome message
- Check which tags are used when loading the welcome message and only apply their replacements afterwards
- Moves AuthMe#replaceAllInfo to a more appropriate place
- Avoid fetching data again for each line
2017-01-22 10:52:51 +01:00
ljacqu 666e242212 Delete CollectionUtils (unused) 2017-01-21 14:47:18 +01:00
ljacqu 8aa1bb9935 Open 5.3 development iteration 2017-01-21 14:14:32 +01:00
ljacqu 29b6e16148 Update Dutch messages 2017-01-14 15:13:46 +01:00
ljacqu d761b0ee5c #1055 Fix verifyMessages task not to shift comments up 2017-01-14 12:13:48 +01:00
ljacqu d81592512e #1055 Reorder message files and update translations page 2017-01-11 21:31:01 +01:00
ljacquandGitHub d68c73799b #1055 Grouping and sorting of text messages (PR #198)
* Initial grouping of messages_en.yml (thanks to input by @Twonox)
* Change MessageFileVerifier to only do verification - no writing
* Create classes for sorting and grouping messages as per the messages_en file
2017-01-11 21:09:17 +01:00
ljacqu cc0d16c7e1 Remove redundant and unused message
- Remove 'reg_voluntarily'
- Remove 'user_unknown' in favor of 'unknown_user' - but move text from old 'user_unknown' to 'unknown_user'

Found by @Twonox
2017-01-09 21:16:53 +01:00
ljacqu 47e6cc4885 #1044 Fix custom join message feature; change default to empty string 2017-01-07 11:34:58 +01:00
ljacqu deb5c65f89 #1055 Add link to Wiki registration page in config, update translations page 2017-01-07 11:08:45 +01:00
ljacqu 385f7d6b1d #1055 Remove multiple "please register" messages
Part 1:
- Use only one message entry for "Please register", that may have to be adapted to reflect the proper /register arguments
- Remove other message entries from code and from the messages files

Breaking change: reg_email_msg is also removed
2017-01-07 09:01:03 +01:00
ljacqu 6cf8789fe0 #758 Show login usage message on invalid arguments, #1053 send translatable "no permission" message
- Add default method to ExecutableCommand interface that allows to define the message key to show if a command's arguments are invalid. If not defined the behavior is as before: show the output of /<command> help
- Use translatable "no permission" message instead of hardcoded one
2017-01-05 20:47:14 +01:00
ljacqu 429088a42f commands.yml: Fix executor property name in comments 2017-01-02 16:32:24 +01:00
ljacqu 0b4d7273f6 #427 Define registration type with two options - one configuring the 2nd argument
- Split sole setting to two: one defining the registration type, and one defining what the register command should take as second argument
- Contains ugly code that will be fixed with a later issue
2016-12-31 15:34:40 +01:00
ljacqu e461112a8a Minor - remove unused code
- Flatfile to SQLite migration was moved into the data source provider. It was forgotten to remove the code from the old location
2016-12-29 14:34:34 +01:00
ljacqu e905ff3013 #427 Make email option for /register [pass] [email] variant 2016-12-27 15:37:52 +01:00
ljacqu dfad0211b7 Fix language for 'lt': it's Lithuanian 2016-12-26 14:57:29 +01:00
ljacqu 57f3c72de0 Update translation verifications 2016-12-24 10:09:54 +01:00
ljacqu d717f75bb4 #1014 Use ConfigMe improvements to create custom Enum set property 2016-12-23 23:51:23 +01:00
ljacqu 9ce680f56e Merge remote-tracking branch 'origin/master' 2016-12-23 23:22:19 +01:00
ljacqu 5f8a19223f Update ConfigMe and Mockito version 2016-12-23 23:22:05 +01:00
ljacqu 92f71d47c2 Merge branch '427-register-with-pass-and-email' of https://github.com/AuthMe-Team/AuthMeReloaded 2016-12-21 21:39:30 +01:00
ljacqu 370d203873 #830 Write tests for registration process 2016-12-18 13:11:56 +01:00
ljacqu 398fa4d38d #830 Refactor registration process
- Introduce registration executors: one for each registration variant; each extending class implements one registration variant and worries about that method's details only
- AsyncRegister receives the player and a registration executor
2016-12-17 21:59:34 +01:00
ljacqu a52fb95656 #427 Implement /register [pass] [email] variant 2016-12-17 15:09:31 +01:00
ljacqu cb64e83988 Fix wrong HTML entity replacement in tool task 2016-12-17 13:51:44 +01:00
ljacqu f9acb3cca1 #427 Replace registration settings with one registration type property
- Merge "useEmail" / "usePasswordConfirmation" / "useEmailConfirmation" settings into enum property
- Migrate old settings
2016-12-15 22:36:54 +01:00
ljacqu e8692160c5 Remove unused import/export messages tool tasks 2016-12-11 10:31:49 +01:00
ljacqu 5b6d0f5d97 Create tool task that adds javadoc to the MessageKey entries 2016-12-11 10:17:26 +01:00
ljacqu b3a8c726cf Use Optional in CacheDataSource again
- An exception is thrown e.g. when running '/authme email player' where 'player' does not exist because CacheLoader#load may not ever return null (see Javadoc). Therefore, we are forced to wrap the PlayerAuth in an Optional.
- Use Java 8 Optional instead of Google's
2016-12-11 09:55:47 +01:00
ljacqu 5a4e827893 #960 Send message to player if email could not be sent 2016-12-11 09:47:48 +01:00
ljacqu 7054c087f1 Integrate Romanian corrections and additions by @nicuch 2016-12-11 08:18:03 +01:00
ljacqu 2d27c0cbb6 Add Romanian translation 2016-12-04 16:26:13 +01:00
ljacqu c325d0db41 Merge CommandService and ProcessService to CommonService
- Replace CommandService and ProcessService with CommonService: a service that offers our typical needs to work with settings, messages and permissions
- Remove validation methods from CommonService: inject ValidationService directly. Validation methods are not used very frequently and therefore don't belong in CommonService. Their presence was a relict from our architecture before injection was used.
2016-12-03 12:10:30 +01:00
ljacqu a38d3a25b8 Update Mockito version 2016-12-01 19:41:31 +01:00
ljacqu 2bd5fcde3c Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 411-forced-commands 2016-11-28 21:57:09 +01:00
ljacqu 808ed84269 #411 Finalize forced commands implementation 2016-11-28 21:51:31 +01:00
ljacqu 79a3858b29 #685 Allow to configure number of rounds for PBKDF2 2016-11-26 18:41:04 +01:00
ljacqu 86db805c15 Merge branch '685-fix-pbkdf2' into master 2016-11-26 18:40:19 +01:00
ljacqu 5ec1c3fe24 #1018 Load group names when AuthGroupHandler is constructed 2016-11-26 16:34:14 +01:00
ljacqu 122c6586bc #685 Add php implementation for PBKDF2
- Create php sample for PBKDF2
- Rename pbkdf2 java classes (remove Crypt prefix)
- Remove options from hash setting comment that should not be used
2016-11-25 16:41:55 +01:00
ljacqu de5324bbc6 #685 Fix PBKDF2 implementation
- Fix our PBKDF2 hash implementation and its test class
- Use external dependency as PBKDF2 implementation
2016-11-25 15:51:15 +01:00
ljacqu f6ed39b118 #411 Improve command migration handling, write tests 2016-11-24 17:39:57 +01:00
ljacqu e83935c11e #1003 Create test for settings migration service 2016-11-24 12:02:22 +01:00
ljacqu e883944da2 #411 Create tests for command migration and manager, minor tweaks 2016-11-23 00:01:35 +01:00
ljacqu 1370352679 Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 411-forced-commands 2016-11-22 22:05:13 +01:00