1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-05 10:07:22 +00:00

github.com/yohcop/openid-go update to first tagged version (#11357)

This commit is contained in:
6543
2020-05-10 10:53:04 +02:00
committed by GitHub
parent fdf750e4d4
commit dbb74978f7
9 changed files with 42 additions and 14 deletions

View File

@ -55,7 +55,7 @@ func (d *SimpleNonceStore) Accept(endpoint, nonce string) error {
now := time.Now()
diff := now.Sub(ts)
if diff > *maxNonceAge {
return fmt.Errorf("Nonce too old: %ds", diff.Seconds())
return fmt.Errorf("Nonce too old: %.2fs", diff.Seconds())
}
s := nonce[20:]