diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-05-04 11:55:15 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-05-04 11:55:15 +0200 |
commit | 85545aba62546f219a9c9730945511412a3174ef (patch) | |
tree | 7bf7feb99c6e7e51e83c386aafb3da3b7610d6bd /api/auth_jwt.go | |
parent | b94f3416c1afe6363249b46bf2b299dfe8e4007f (diff) | |
download | Front-85545aba62546f219a9c9730945511412a3174ef.tar.gz Front-85545aba62546f219a9c9730945511412a3174ef.tar.zst Front-85545aba62546f219a9c9730945511412a3174ef.zip |
Password reset.
Diffstat (limited to 'api/auth_jwt.go')
-rw-r--r-- | api/auth_jwt.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/api/auth_jwt.go b/api/auth_jwt.go index 5ce1593..db7e3f4 100644 --- a/api/auth_jwt.go +++ b/api/auth_jwt.go | |||
@@ -20,10 +20,6 @@ type JwtClaims struct { | |||
20 | jwt.StandardClaims | 20 | jwt.StandardClaims |
21 | } | 21 | } |
22 | 22 | ||
23 | func SetJwtSecretKey(secret string) { | ||
24 | JWT_SECRET = []byte(secret) | ||
25 | } | ||
26 | |||
27 | func VerifyJwtToken(token string) (JwtClaims, error) { | 23 | func VerifyJwtToken(token string) (JwtClaims, error) { |
28 | if len(JWT_SECRET) == 0 { | 24 | if len(JWT_SECRET) == 0 { |
29 | return JwtClaims{}, fmt.Errorf("not initialized jwt secret") | 25 | return JwtClaims{}, fmt.Errorf("not initialized jwt secret") |