Skip to content

Commit 2d15ce1

Browse files
committed
token password encode
1 parent cfc0d96 commit 2d15ce1

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>com.codingapi.springboot</groupId>
1313
<artifactId>springboot-parent</artifactId>
14-
<version>1.1.3</version>
14+
<version>1.1.4</version>
1515

1616
<url>https://github.com/codingapi/springboot-framewrok</url>
1717
<name>springboot-parent</name>

springboot-example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.codingapi.springboot</groupId>
66
<artifactId>springboot-parent</artifactId>
7-
<version>1.1.3</version>
7+
<version>1.1.4</version>
88
</parent>
99
<artifactId>springboot-example</artifactId>
1010

springboot-starter-data-permission/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>1.1.3</version>
9+
<version>1.1.4</version>
1010
</parent>
1111

1212

springboot-starter-security-jwt/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>1.1.3</version>
9+
<version>1.1.4</version>
1010
</parent>
1111

1212
<artifactId>springboot-starter-security-jwt</artifactId>

springboot-starter-security-jwt/src/main/java/com/codingapi/springboot/security/jwt/Token.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ public boolean isExpire(){
4949
}
5050

5151

52-
public String getPassword() throws IOException {
52+
public String getPassword(){
53+
return password;
54+
}
55+
56+
@Transient
57+
public String getDecodePassword() throws IOException {
5358
return AESUtils.getInstance().decodeToBase64(password);
5459
}
5560

springboot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.codingapi.springboot</groupId>
66
<artifactId>springboot-parent</artifactId>
7-
<version>1.1.3</version>
7+
<version>1.1.4</version>
88
</parent>
99
<artifactId>springboot-starter</artifactId>
1010

0 commit comments

Comments
 (0)