auth/simple_token.go: fix plog.Panicf error message

Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
This commit is contained in:
zhoulin xie 2019-02-24 16:12:00 +08:00 committed by Sam Batschelet
parent 8c228d692b
commit 5effa154b4

View File

@ -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 (
@ -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)
}
}