Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jh-boot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jan Hrabal
jh-boot
Commits
c2f30813
Commit
c2f30813
authored
Sep 19, 2019
by
Jan Hrabal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pom
parent
d441551c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
16 deletions
+8
-16
pom.xml
pom.xml
+2
-15
AuthApiController.java
...main/java/com/jh/boot/security/api/AuthApiController.java
+6
-1
No files found.
pom.xml
View file @
c2f30813
...
...
@@ -19,6 +19,8 @@
<properties>
<project.build.date>
${maven.build.timestamp}
</project.build.date>
<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>
<java.version>
8
</java.version>
</properties>
...
...
@@ -101,12 +103,6 @@
<version>
3.1
</version>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
javax.servlet-api
</artifactId>
<scope>
provided
</scope>
</dependency>
<!-- testing -->
<dependency>
<groupId>
junit
</groupId>
...
...
@@ -125,12 +121,6 @@
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
commons-httpclient
</groupId>
<artifactId>
commons-httpclient
</artifactId>
<version>
3.1
</version>
</dependency>
</dependencies>
<build>
...
...
@@ -172,7 +162,6 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-release-plugin
</artifactId>
<version>
2.4.1
</version>
</plugin>
<plugin>
...
...
@@ -186,9 +175,7 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.8.0
</version>
<!--$NO-MVN-MAN-VER$-->
<configuration>
<release>
${java.version}
</release>
<source>
${java.version}
</source>
<target>
${java.version}
</target>
<encoding>
${project.build.sourceEncoding}
</encoding>
...
...
src/main/java/com/jh/boot/security/api/AuthApiController.java
View file @
c2f30813
...
...
@@ -25,6 +25,7 @@ import org.springframework.util.StringUtils;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
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.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
...
...
@@ -236,12 +237,16 @@ public class AuthApiController {
if
(
user
==
null
)
{
return
ResponseEntity
.
notFound
().
build
();
}
authService
.
delete
(
user
);
return
ResponseEntity
.
accepted
().
build
();
}
@PutMapping
(
"/auth/password"
)
public
void
changePassword
(
@RequestBody
ChangePassword
chp
)
{
//authService.
}
@GetMapping
(
"/auth/terms"
)
public
@ResponseBody
LegalDocument
terms
(
Locale
locale
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment