Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
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
liqin
chnmuseum-party
Commits
64c7a548
Commit
64c7a548
authored
Mar 12, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
8e2a6e54
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
MyShiroRealm.java
...cn/wisenergy/chnmuseum/party/auth/realm/MyShiroRealm.java
+1
-1
Employee.java
...ain/java/cn/wisenergy/chnmuseum/party/model/Employee.java
+7
-3
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/auth/realm/MyShiroRealm.java
View file @
64c7a548
...
@@ -100,7 +100,7 @@ public class MyShiroRealm extends AuthorizingRealm {
...
@@ -100,7 +100,7 @@ public class MyShiroRealm extends AuthorizingRealm {
throw
new
AuthenticationException
(
"token invalid"
);
throw
new
AuthenticationException
(
"token invalid"
);
}
}
return
new
SimpleAuthenticationInfo
(
new
Employee
(
token
),
token
,
getName
());
return
new
SimpleAuthenticationInfo
(
new
Employee
(
employee
.
getId
(),
token
),
token
,
getName
());
}
}
/**
/**
...
...
src/main/java/cn/wisenergy/chnmuseum/party/model/Employee.java
View file @
64c7a548
package
cn
.
wisenergy
.
chnmuseum
.
party
.
model
;
package
cn
.
wisenergy
.
chnmuseum
.
party
.
model
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
...
@@ -12,6 +9,8 @@ import com.baomidou.mybatisplus.extension.activerecord.Model;
...
@@ -12,6 +9,8 @@ import com.baomidou.mybatisplus.extension.activerecord.Model;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Arrays
;
import
java.util.Date
;
/**
/**
* <p>
* <p>
...
@@ -33,6 +32,11 @@ public class Employee extends Model<Employee> {
...
@@ -33,6 +32,11 @@ public class Employee extends Model<Employee> {
this
.
jwtToken
=
jwtToken
;
this
.
jwtToken
=
jwtToken
;
}
}
public
Employee
(
String
id
,
String
jwtToken
)
{
this
.
id
=
id
;
this
.
jwtToken
=
jwtToken
;
}
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
jwtToken
;
private
String
jwtToken
;
/**
/**
...
...
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