upgrade to Spring Boot 4, add webauthn support, some cleanup
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package de.bstly.we.minetest.businesslogic;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package de.bstly.we.minetest.businesslogic;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package de.bstly.we.minetest.businesslogic;
|
||||
|
||||
/**
|
||||
|
||||
+1
-4
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package de.bstly.we.minetest.controller;
|
||||
|
||||
import java.util.List;
|
||||
@@ -98,7 +95,7 @@ public class MinetestAccountController extends BaseController {
|
||||
*/
|
||||
@PreAuthorize("isAuthenticated()")
|
||||
@DeleteMapping("/{name}")
|
||||
public void deleteMinetestAccount(@PathVariable("name") String name) {
|
||||
public void deleteMinetestAccount(@PathVariable String name) {
|
||||
if (!permissionManager.hasPermission(getCurrentUserId(), MinetestPermissions.MINETEST)) {
|
||||
minetestAccountManager.deleteAll(getCurrentUserId(), true);
|
||||
throw new EntityResponseStatusException(HttpStatus.FORBIDDEN);
|
||||
|
||||
+2
-5
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package de.bstly.we.minetest.controller;
|
||||
|
||||
import java.util.Optional;
|
||||
@@ -80,7 +77,7 @@ public class MinetestAccountManagementController extends BaseController {
|
||||
*/
|
||||
@PreAuthorize("hasRole('ROLE_ADMIN')")
|
||||
@DeleteMapping("/{name}")
|
||||
public void deleteMinetestAccount(@PathVariable("name") String name,
|
||||
public void deleteMinetestAccount(@PathVariable String name,
|
||||
@RequestParam("quota") Optional<Boolean> quota) {
|
||||
|
||||
MinetestAccount minetestAccount = minetestAccountManager.get(name);
|
||||
@@ -99,7 +96,7 @@ public class MinetestAccountManagementController extends BaseController {
|
||||
*/
|
||||
@PreAuthorize("hasRole('ROLE_ADMIN')")
|
||||
@DeleteMapping("/all/{owner}")
|
||||
public void deleteAll(@PathVariable("owner") Long owner, @RequestParam("quota") Optional<Boolean> quota) {
|
||||
public void deleteAll(@PathVariable Long owner, @RequestParam("quota") Optional<Boolean> quota) {
|
||||
minetestAccountManager.deleteAll(owner, quota.isPresent() && quota.get().booleanValue());
|
||||
}
|
||||
|
||||
|
||||
-3
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package de.bstly.we.minetest.controller.validation;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package de.bstly.we.minetest.model;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package de.bstly.we.minetest.repository;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
Reference in New Issue
Block a user