82d74ca0a7
Move close methods out of sql datasource utils class As noticed by @Gnat008 - We need two different implementations for MySQL and SQLite because SQLite uses an older version where #isClosed is not implemented
ljacqu
2017-04-29 08:18:43 +02:00
61c215d337
Try to fix protoclllib repo link
Gabriele C
2017-04-24 14:46:50 +02:00
5dd73e9594
Fix ProtocolLib repo url
Gabriele C
2017-04-23 11:51:11 +02:00
d0dbc14358
Minor - fix some small todo's
ljacqu
2017-04-23 11:02:43 +02:00
e56a3c0ab6#815 Save yaw & pitch for last login in SQL data sources
ljacqu
2017-04-22 13:30:03 +02:00
70298a830b
Remove outdated todo
ljacqu
2017-04-21 20:29:50 +02:00
07633a89c8
Create SQL data source utils class - Extract logic used in SQLite and MySQL for logging and closing SQL objects - Decided to leave buildAuthFromResultSet methods individually as this might be more implementation-specific - Rename DataSource#close to DataSource#closeConnection to fix conflict with static import
ljacqu
2017-04-18 22:55:39 +02:00
04ca36fe53
Use more specific query to get logged in players without email - Reduces the amount of data returned from the DB and the work required to build objects
ljacqu
2017-04-18 22:30:54 +02:00
b0c05afaa7
Create util method to check if email is empty - Create method to check if email is empty or the default AuthMe email (avoids repetition) - Check that input email has '@' inside text (relates to #1105)
ljacqu
2017-04-18 21:24:33 +02:00
2a747c7d01#1034 Create permissions for debug sections - Add an individual permission for each debug section (including wildcard perm) - Create test for DebugCommand - Refactor tests for the enum permission nodes to use the same abstract class - Update related project files (plugin.yml, permission docs, command docs)
ljacqu
2017-04-14 19:54:17 +02:00
cbec5427f2#1162 New API class: implement ignored review remarks
ljacqu
2017-04-14 18:11:47 +02:00
bf38782790
Implement ARGON2 hash (#1165)
Gabriele C
2017-04-14 18:03:27 +02:00
5a93ed32f1
Fix API test package
Gabriele C
2017-04-14 14:03:40 +02:00
ff7b9077e8
We dislike craftbukkit!
Gabriele C
2017-04-14 02:05:36 +02:00
4a94307ba0
Merge pull request #1160 from Maxetto/patch-7
Gabriele C
2017-04-14 01:46:05 +02:00
eb0c0587a1
Merge pull request #1164 from timvisee/master
Gabriele C
2017-04-14 01:38:03 +02:00
adb007108d#1147 Drop SingleFilePersistenceHandler in favor of DistributedFilesPersistenceHandler - Remove SingleFilePersistenceHandler: DistributedFilesPersistenceHandler with segment size 1 can be used instead - Rename SegmentFilesPersistenceHolder to DistributedFilesPersistenceHandler - Rename SeparateFilePersistenceHandler to IndividualFilesPersistenceHandler to match LimboPersistenceType entry - Add link to limbo page on Wiki in the settings
ljacqu
2017-03-28 21:42:01 +02:00
a764598f88
Adjust repo links in code
ljacqu
2017-03-28 08:11:00 +02:00
2070f22968
Security - if any Throwable is thrown on initialization AuthMe should shut down - Found via #1149
ljacqu
2017-03-27 21:41:35 +02:00
7d17608a0b#1148 Update devbukkit page links
Gabriele C
2017-03-27 19:12:25 +02:00
616871ffa5
Drop CraftBukkit support
Gabriele C
2017-03-27 17:49:15 +02:00
7ea63667f3
Update some links
Gabriele C
2017-03-26 22:15:23 +02:00
a56e404446
Fix readme format
Gabriele C
2017-03-26 22:05:11 +02:00
1f02ef6f6e
Merge pull request #1083 from AuthMe/master
Gabriele C
2017-03-26 19:52:12 +02:00
1f4192e5af#1145 Remove PlayerListener from visibility test exclusions
Gabriele C
2017-03-26 19:39:40 +02:00
fc47a0a74f
Force US decimal format
Gabriele C
2017-03-26 16:12:53 +02:00
6be6e8e851
Exclude jacoco fields from consistency test - Fix wrong condition check :)
ljacqu
2017-03-26 14:53:52 +02:00
dbd0e04a2e
Exclude jacoco fields from consistency test - The Jacoco plugin adds fields "$jacocoData" to the classes which make the test fail
ljacqu
2017-03-26 14:47:39 +02:00
75f84945fc
Misc code householding - Checkstyle config: allow todo comments with issue number - Create consistency tests across all classes, ensuring: unique class names, users of expiring collectors implement HasCleanup, non-private fields are only constants - Fix tag replacement in PlayerListener for {DISPLAYNAME}
ljacqu
2017-03-26 13:20:40 +02:00
8cf7983027#1034 Add debug sections for spawn and input validation
ljacqu
2017-03-26 12:10:51 +02:00
c54231b255#1138 Show warning for hashes that will be deprecated in 5.4 - Introduce Usage.DEPRECATED to mark the hash algorithms accordingly - Log warning when such a deprecated hash algorithm is used - Update hash algorithms doc page
ljacqu
2017-03-25 00:23:54 +01:00
b7901c6b59
Simplify exclusion of enum properties in SettingsConsistencyTest - Allow enum values to be absent if they are deprecated
ljacqu
2017-03-24 23:23:40 +01:00
a2d62ea6d9#1116#1117 Add command usage hints and remove unused message keys - Add usage message on argument mismatch where available - Remove unused message keys - Create tool task to search for a message key's usages and to find unused keys
ljacqu
2017-03-24 23:03:10 +01:00
2f90a45f43#1036 Remove 'allowSpeed' option - Option is no longer needed as the plugin user can configure how/if the speeds should be restored now
ljacqu
2017-03-24 21:26:34 +01:00
3e95d30c6b
Improve dependency graph task - Simplify logic for converting a dependency description to its display name - Add new common supertypes
ljacqu
2017-03-23 23:15:04 +01:00
dfd81b069a
Fix titles in readme
ljacqu
2017-03-23 10:43:29 +01:00
32a664ef59
Update checkstyle config and CodeClimate exclusions - Add new checkstyle checks: require Javadoc on large private methods, default in switch, declaration order & others - Update path exclusions in CodeClimate config to match newly renamed classes (e.g. PHPBB -> PhpBB) - Create consistency check testing that excluded paths exist as classes - Fix some trivial violations
ljacqu
2017-03-23 10:34:28 +01:00
e77828b228
Update docs / update recovery code command in email message - Update docs to reflect new commands, configurations (account recovery, limbo handling) and messages - Change message for the recovery code email to contain the new command
ljacqu
2017-03-22 23:14:02 +01:00
ce40b3798b
Add logging for when a player changes their password or has a new one generated
EbonJaguar
2017-03-22 17:54:30 -04:00
4053a0e328
If recovery code is required, dont send new password
EbonJaguar
2017-03-22 17:11:18 -04:00
da8b33f1bc
Make Travis update JDK 8 version
ljacqu
2017-03-22 08:55:18 +01:00
7dbf5551c9
Cleanup: avoid injecting Injector directly - Inject SingletonStore to restrict the possible functions - Refactor PasswordSecurityTest to correspond to the usual way of testing
ljacqu
2017-03-21 22:59:21 +01:00
4e54fa4a4e
Restrict changing password after recovery to the same username
Gnat008
2017-03-21 17:38:53 -04:00
d19748fe5b#1034 Debug commands: permission checker + data statistics - Create debug command to check if a player has the given permission - Create debug command that outputs the size of various caches / DB info / number of saved instances in injector
ljacqu
2017-03-21 22:00:21 +01:00
ed0126d06c
Add a couple tests
Gnat008
2017-03-21 16:48:20 -04:00
3c45ca8425#1100 Check that auth exists for /email show - This case should never happen, but better to be safe
ljacqu
2017-03-20 20:57:09 +01:00
1da74cb987#1005 Improve restricted user feature (performance, error handling) - Move check for restricted user into validation service - Keep restrictions in a map by name for fast lookup, avoid splitting Strings on every call - Gracefully handle case when entry does not have the expected ';' and log exception
ljacqu
2017-03-14 22:26:19 +01:00
84acc4557a#1125 Limbo persistence: convert old segments, add tests - On startup / reload the playerdata folder is scanned for old segment files, whose data is migrated before they are deleted - Add tests for segment files persistence holder
ljacqu
2017-03-14 20:46:28 +01:00
9c3baa7f14#1125 Create persistence of LimboPlayers in segment files (work in progress) - Instead of one huge file or a file for each player, allow the user to define how many files he wants to distribute the LimboPlayers over. This is based on a function that creates a String (segment ID) based on the player's UUID.
ljacqu
2017-03-13 20:29:08 +01:00
8557621c02#1125 Create infrastructure for Limbo persistence + restore 5.2 JSON storage - Introduce configurable storage mechanism - LimboPersistence wraps a LimboPersistenceHandler, of which there are multiple implementations - Outside of the limbo.persistence package, classes only talk to LimboPersistence - Restore the way of persisting to JSON from 5.2 (SeparateFilePersistenceHandler)
ljacqu
2017-03-12 18:43:37 +01:00
1678901e02#1113 Attempt to merge new LimboPlayer with an existing one - Extract some logic into LimboServiceHelper to keep LimboService slim - Create LimboServiceHelper#merge to merge two LimboPlayers associated with a Player. E.g. if an admin unregisters an online player that has not logged in, the creation of a LimboPlayer is triggered while there already is one in LimboService
ljacqu
2017-03-12 15:56:08 +01:00