mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
refac: fixed, better, smarter, correct dependency injection
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ func StartServerIfNotAlready() {
|
||||
}
|
||||
|
||||
func getAuthorizationCookie(userId uint32) *http.Cookie {
|
||||
_, tokenString, err := auth.Token.Encode(map[string]interface{}{"user_id": userId})
|
||||
_, tokenString, err := auth.Token.Encode(map[string]any{"user_id": userId})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user