fix for travis complaint
This commit is contained in:
parent
2bab16649c
commit
bc0fc1991e
3
gauth.go
3
gauth.go
@ -30,9 +30,8 @@ func normalizeSecret(sec string) string {
|
|||||||
padLength := 8 - (len(noPadding) % 8)
|
padLength := 8 - (len(noPadding) % 8)
|
||||||
if padLength < 8 {
|
if padLength < 8 {
|
||||||
return noPadding + strings.Repeat("=", padLength)
|
return noPadding + strings.Repeat("=", padLength)
|
||||||
} else {
|
|
||||||
return noPadding
|
|
||||||
}
|
}
|
||||||
|
return noPadding
|
||||||
}
|
}
|
||||||
|
|
||||||
func AuthCode(sec string, ts int64) (string, error) {
|
func AuthCode(sec string, ts int64) (string, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user