Browse Source

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

Signed-off-by: zhoulin xie <zhoulin.xie@daocloud.io>
zhoulin xie 6 years ago
parent
commit
5effa154b4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      auth/simple_token.go

+ 2 - 2
auth/simple_token.go

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