Skip to content

Commit 017b2f5

Browse files
authored
Update endpoints.go
1 parent a47aaff commit 017b2f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/handler/auth/endpoints.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ func (service *auth) CreateToken(w http.ResponseWriter, r *http.Request) {
123123
}
124124
}
125125

126+
// TODO: Should not be able to add the root scope unless you have the root scope
127+
126128
// Create the token
127129
token := NewToken(req.Name, service.tokenBytes, req.Duration.Duration, req.Scope...)
128130
if !token.IsValid() {

0 commit comments

Comments
 (0)