ljacqu
39fbb4ac05
Remove tests calling hidden constructor of util classes
...
- Newer versions of JaCoCo now ignore hidden constructors out of the box so we don't need the dummy method that calls the constructor for coverage anymore
2019-11-03 11:27:18 +01:00
ljacqu
2673eb0f8e
Mockito: Replace deprecated verifyZeroInteractions with verifyNoInteractions
2019-10-26 21:56:54 +02:00
ljacqu
776d1e5fa3
Fix failing test
...
- googleauth uses a new website to generate QR codes, cf. https://github.com/wstrange/GoogleAuth/issues/77
2019-10-26 21:52:43 +02:00
Gabriele C
d30580d5d4
Listener optimizations ( #1884 )
...
* Drop CraftBukkit support, listeners cleanup
* Codestyle
* Codestyle
* Remove useless player.saveData() calls
* Micro optimization on the join process
* Requested changes
* Fix unit test
* Test onPlayerHeldItem listener
* Requested changes
* Remove unused import
2019-08-11 23:47:50 +02:00
ljacqu
e2f2ff0763
#1874 Output number of loggers in /authme debug stats
2019-08-11 11:36:28 +02:00
ljacqu
363e85e363
Set up logger at start of initialization to avoid NPE on errors later on
...
- Thanks to sgdc3 for the hint
2019-08-11 11:32:03 +02:00
ljacqu
647ee245e0
#1874 Format debug messages in log, use Java 8 date formatter
...
- Format debug messages properly in the authme.log as well
- Replace DateFormat with Java 8's DateTimeFormatter (which is thread-safe)
2019-08-10 22:44:57 +02:00
Gabriele C
48357831cd
Revert "Packet based movement freeze ( #1879 )" ( #1882 )
...
This reverts commit db3acce70c2096054e7854d318cf29688280a6fd.
2019-08-07 10:49:23 +02:00
Gabriele C
db3acce70c
Packet based movement freeze ( #1879 )
...
* Remove unused files
* Remove walk/fly speed from limbo player
* Implement packet based movement freeze
2019-08-07 06:47:00 +02:00
ljacqu
d87fa860e6
Add test for UuidUtils
2019-08-06 19:42:06 +02:00
ljacqu
c34f00f759
#1874 Introduce individual ConsoleLogger instance per class ( #1875 )
...
* #1874 Introduce individual ConsoleLogger instance per class
- Create ConsoleLoggerFactory from which a separate logger can be created for each class
- Allows to support individual log level settings in the future
* Fix CodeStyle issue
* Replace full class name with import
* Update usages after merge from master
2019-08-06 15:15:16 +02:00
ljacqu
7bede2528f
#1523 Create admin commands to handle players' 2FA data ( #1876 )
...
* #1523 Create admin commands to handle players' 2FA data
- Create admin command to view if a player has enabled 2FA
- Create admin command to disable 2FA for a specified player
2019-08-05 19:31:59 +02:00
ljacqu
f0d3d085c6
#1574 Use server name in 2FA QR code link instead of IP
2019-08-02 15:38:13 +02:00
ljacqu
210a4f61cb
#1219 Make 2FA tokens one-use only ( #1848 )
...
- Make TotpAuthenticator keep track of the used codes and reject any known ones
2019-07-06 18:26:43 +02:00
ljacqu
fc06558687
Minor: change bukkit service to return a plain collection of Player
...
- List is read-only and can be easily "upcast" to Collection<Player>
- Remove awkward hack that was needed for mocking the method previously (issues with generics)
2019-06-22 23:50:06 +02:00
ljacqu
4be130b71b
Fix #1493 Extract handling of message file paths to a separate class with constants
2019-06-22 22:37:32 +02:00
ljacqu
ff2f43bdc5
#1743 Stop mobs from targetting players when not authenticated
2019-06-22 20:54:01 +02:00
ljacqu
6903e058d5
Undo star imports
2019-06-17 22:02:10 +02:00
ljacqu
e9cd16aaac
Undo star imports
2019-06-17 21:58:25 +02:00
Gabriele C
951c648311
Update to 1.14.2
2019-06-04 10:44:47 +02:00
Gabriele C
ce4bb43dee
Remove bPermissions support
2019-05-02 10:42:24 +02:00
ljacqu
7f1894c5be
Remove no longer needed method in test class
2019-04-27 12:46:39 +02:00
Gabriele C
5b97841699
Add 1.14 compatibility
2019-04-23 17:18:42 +02:00
Alexandre Vanhecke
44cb787577
Add an option to disable MySQL server certificate check - Fix #1735
2019-04-05 22:31:47 +02:00
ljacqu
c856191659
Update to ConfigMe 1.1.0
...
- Squash of PR #1764
2019-03-01 20:22:38 +01:00
ljacqu
c27a8d359c
Merge branch '5.5.0' of https://github.com/AuthMe/AuthMeReloaded
2018-12-04 19:52:12 +01:00
ljacqu
bce1110b13
Minor: check returned permission system type in permission handler test
2018-12-04 19:48:46 +01:00
ljacqu
e84be5e4de
#1702 Consider that Vault permission handler may return null for permission groups
2018-12-04 19:45:46 +01:00
ljacqu
80647c04f4
Merge branch '5.5.0' of https://github.com/AuthMe/AuthMeReloaded
2018-12-04 19:05:14 +01:00
ljacqu
f431325516
#1650 Fix users with capitals not having their session saved
2018-12-04 19:04:25 +01:00
Gabriele C
650a97647a
Drop FlatFile storage converter
...
It's time...
2018-11-30 15:29:30 +01:00
Gabriele C
c11e4b9f15
Remove 1.7 support
2018-11-30 09:23:30 +01:00
Gabriele C
d2373ed73f
Fix unit test
2018-10-23 16:12:00 +02:00
Gabriele C
84a65344c7
Fix unit test
2018-09-19 00:32:42 +02:00
Gabriele C
09c3e7bf22
Drop deprecated v2 API
2018-09-17 20:21:09 +02:00
ljacqu
22c08c9fc3
#1449 Fix copying of Commands, add tests with command delay
2018-09-11 22:04:27 +02:00
ljacqu
44763a055f
Fix VerificationCommandTest sometimes failing
...
- Need to set up ConsoleLogger to avoid NPE, didn't always happen because if all tests are run in a batch another test will initialize it
2018-09-09 15:47:52 +02:00
ljacqu
ee764c0a6e
Update configme ( #1631 )
...
* Upgrade to ConfigMe 1.0.1
* Use ConfigMe reader whenever possible, minor simplifications
2018-09-09 15:45:00 +02:00
ljacqu
b22f26822b
#1627 Replace BCryptService with Maven dependency ( #1629 )
...
* #1627 Replace BCryptService with Maven dependency
- Remove BCryptService in favor of a better BCrypt implementation (Maven dependency)
- Introduce BCryptHasher wrapping the dependency with more suitable methods
- Fix inaccurate details about salt length in docu annotation: for BCrypt it's always 22 chars
- Change phpBB hash to produce 2y hashes instead of 2a
* #1627 Use UTF-8 encoding when (dis)assembling Strings
* #1627 Small test additions
2018-09-03 23:13:48 +02:00
Alan Gomes
4be174f083
Add PostgreSQL support ( #1620 )
...
* Add PostgreSQL support
* Fix code issues and create integration tests
* Fix identation
* Test Postgres data source in postgres integration test
* Relocated the postgres driver
2018-09-02 12:12:35 +02:00
ljacqu
f79c364f84
Minor fixes as reported by CodeClimate
2018-09-01 09:17:42 +02:00
Gabriele C
22623aac85
Fix unit test
2018-08-26 19:23:15 +02:00
games647
0227cb3f74
Add IPv6 support for isLocal checks ( #1592 )
...
* Add IPv6 support for isLocal checks
* Replace magic values like 127.0.0.1 and use our utility
* Support for IPv6 local adresses in IPv6 only or dual stack environments
* Loopback [::1]
* Site-Local fc00::/7
* Link-local fe80::/10
* Introduce extra method for loopback addresses
* Use public IP for passMaxLogin check
* Use non-local IP addresses in test after change in verification
2018-07-04 02:05:17 +02:00
ljacqu
fecd79fd28
Merge pull request #1577 from AuthMe/1417-chat-before-login-with-permission
...
#1417 Add permission node to allow chat before login
2018-05-22 19:51:15 +02:00
ljacqu
b9943675ba
#1557 Disallow player from using /email setpassword more than once
2018-05-21 13:29:34 +02:00
ljacqu
68b896cfc3
Move salt column configuration to the other column configs
2018-05-21 09:10:27 +02:00
ljacqu
c4b02d74b7
Fix generic type in PlayerAuth matcher
2018-05-21 09:01:00 +02:00
ljacqu
6142042996
#1417 Add permission node to allow chat before login
2018-05-21 08:45:18 +02:00
ljacqu
8e4288f911
Minor code householding
2018-05-20 13:10:26 +02:00
ljacqu
729c567dd5
#1141 Check that user is logged in before changing TOTP key
...
- Use PlayerCache to check that user is logged in where appropriate
- Add log statements
2018-05-13 18:49:40 +02:00