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
e3e3232c
Commit
e3e3232c
authored
Sep 20, 2019
by
jhrabal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git.janhrabal.com:4022/janh683/jh-boot
parents
318d6e38
c2f30813
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
pom.xml
pom.xml
+2
-13
AuthApiController.java
...main/java/com/jh/boot/security/api/AuthApiController.java
+6
-1
No files found.
pom.xml
View file @
e3e3232c
...
...
@@ -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>
...
...
@@ -185,7 +175,6 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.8.0
</version>
<!--$NO-MVN-MAN-VER$-->
<configuration>
<source>
${java.version}
</source>
<target>
${java.version}
</target>
...
...
src/main/java/com/jh/boot/security/api/AuthApiController.java
View file @
e3e3232c
...
...
@@ -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