Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
cash-loan-flow-boss
Commits
cf9b4269
Commit
cf9b4269
authored
Aug 21, 2019
by
WeiWei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试domain
parent
6f90f3b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
LogController.java
...up/cashloanflowboss/api/log/controller/LogController.java
+2
-1
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/log/controller/LogController.java
View file @
cf9b4269
...
...
@@ -14,7 +14,6 @@ import javax.validation.Valid;
/**
* Created by WeiWei on 2019/7/22.
*/
@CrossOrigin
(
allowCredentials
=
"true"
,
origins
=
"*"
)
@RestController
public
class
LogController
{
...
...
@@ -27,6 +26,7 @@ public class LogController {
* @param loginFormModel
* @return
*/
@CrossOrigin
(
allowCredentials
=
"true"
)
@PostMapping
(
"/login"
)
public
Result
<
Boolean
>
login
(
@RequestBody
@Valid
LoginFormModel
loginFormModel
)
{
return
new
Result
<>(
ApplicationStatus
.
SUCCESS
,
this
.
logService
.
login
(
loginFormModel
.
getUsername
(),
loginFormModel
.
getPassword
()));
...
...
@@ -37,6 +37,7 @@ public class LogController {
*
* @return
*/
@CrossOrigin
(
allowCredentials
=
"true"
)
@DeleteMapping
(
"/logout"
)
@Security
(
authorityId
=
"Log.logout"
,
authorities
=
Authority
.
READ
)
public
Result
<
Boolean
>
logout
()
{
...
...
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