Commit c2f30813 by Jan Hrabal

pom

parent d441551c
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
<properties> <properties>
<project.build.date>${maven.build.timestamp}</project.build.date> <project.build.date>${maven.build.timestamp}</project.build.date>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format> <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.date>${maven.build.timestamp}</project.build.date> <project.build.date>${maven.build.timestamp}</project.build.date>
<java.version>8</java.version> <java.version>8</java.version>
</properties> </properties>
...@@ -101,12 +103,6 @@ ...@@ -101,12 +103,6 @@
<version>3.1</version> <version>3.1</version>
</dependency> </dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<!-- testing --> <!-- testing -->
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
...@@ -125,12 +121,6 @@ ...@@ -125,12 +121,6 @@
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
...@@ -172,7 +162,6 @@ ...@@ -172,7 +162,6 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version>
</plugin> </plugin>
<plugin> <plugin>
...@@ -186,9 +175,7 @@ ...@@ -186,9 +175,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version><!--$NO-MVN-MAN-VER$-->
<configuration> <configuration>
<release>${java.version}</release>
<source>${java.version}</source> <source>${java.version}</source>
<target>${java.version}</target> <target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding> <encoding>${project.build.sourceEncoding}</encoding>
......
...@@ -25,6 +25,7 @@ import org.springframework.util.StringUtils; ...@@ -25,6 +25,7 @@ import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
...@@ -236,12 +237,16 @@ public class AuthApiController { ...@@ -236,12 +237,16 @@ public class AuthApiController {
if (user == null) { if (user == null) {
return ResponseEntity.notFound().build(); return ResponseEntity.notFound().build();
} }
authService.delete(user); authService.delete(user);
return ResponseEntity.accepted().build(); return ResponseEntity.accepted().build();
} }
@PutMapping("/auth/password")
public void changePassword(@RequestBody ChangePassword chp) {
//authService.
}
@GetMapping("/auth/terms") @GetMapping("/auth/terms")
public @ResponseBody LegalDocument terms(Locale locale) { public @ResponseBody LegalDocument terms(Locale locale) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment