Skip to content

Commit

Permalink
auth/simple_token.go: fix plog.Panicf error message
Browse files Browse the repository at this point in the history
Signed-off-by: zhoulin xie <[email protected]>
  • Loading branch information
JoeWrightss authored and hexfusion committed Feb 25, 2019
1 parent 8c228d6 commit 5effa15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/simple_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package auth

// CAUTION: This randum number based token mechanism is only for testing purpose.
// CAUTION: This random number based token mechanism is only for testing purpose.
// JWT based mechanism will be added in the near future.

import (
Expand Down Expand Up @@ -134,7 +134,7 @@ func (t *tokenSimple) assignSimpleTokenToUser(username, token string) {
zap.String("token", token),
)
} else {
plog.Panicf("token %s is alredy used", token)
plog.Panicf("token %s is already used", token)
}
}

Expand Down

0 comments on commit 5effa15

Please sign in to comment.