Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
userManagement
Commits
6aaa8c10
Unverified
Commit
6aaa8c10
authored
1 year ago
by
Shishir Suman
Committed by
GitHub
1 year ago
Browse files
Options
Download
Patches
Plain Diff
adding logout method
parent
5a202812
dev_stable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/tarento/upsmf/userManagement/handler/UserHandler.java
+13
-0
...com/tarento/upsmf/userManagement/handler/UserHandler.java
with
13 additions
and
0 deletions
+13
-0
src/main/java/com/tarento/upsmf/userManagement/handler/UserHandler.java
+
13
−
0
View file @
6aaa8c10
...
...
@@ -196,4 +196,17 @@ public class UserHandler {
public
ResponseEntity
<
String
>
getUserByAttribute
(
JsonNode
body
)
throws
SQLException
,
IOException
,
URISyntaxException
{
return
userService
.
getUserListByAttribute
(
body
);
}
public
ResponseEntity
<
String
>
logout
(
JsonNode
jsonNode
)
throws
IOException
{
if
(
jsonNode
==
null
||
jsonNode
.
isNull
()
||
jsonNode
.
isEmpty
())
{
return
ResponseEntity
.
badRequest
().
body
(
"Invalid Request"
);
}
String
userId
=
jsonNode
.
get
(
"userId"
).
asText
();
if
(
userId
==
null
||
userId
.
isBlank
())
{
return
ResponseEntity
.
badRequest
().
body
(
"Invalid User ID"
);
}
return
userService
.
logout
(
userId
);
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets