Blog deletion

This commit is contained in:
Caleb Gardner
2024-12-27 00:28:34 -06:00
parent aa180ae67e
commit 1229be1cee
4 changed files with 55 additions and 3 deletions
+1 -1
View File
@@ -307,7 +307,7 @@ func (b *Backend) login(w http.ResponseWriter, r *http.Request) {
} else {
if err == ErrLoginTimeout {
ret.Error = "timeout"
ret.ErrorMsg = fmt.Sprint("Timed out for", time.Unix(u.Timeout, 0).Sub(time.Now()), "seconds")
ret.ErrorMsg = fmt.Sprint("Timed out for", time.Until(time.Unix(u.Timeout, 0)), "seconds")
ret.Timeout = u.Timeout
} else {
ret.Error = "incorrect"