1
0
Fork 0
forked from forgejo/forgejo

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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:]