add issue template

This commit is contained in:
Harvey Tindall
2020-09-15 12:00:20 +01:00
parent 4ca14675e6
commit 500ecac95d
4 changed files with 68 additions and 23 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func pwrMonitor(app *appContext, watcher *fsnotify.Watcher) {
return
}
app.info.Printf("New password reset for user \"%s\"", pwr.Username)
if ct := time.Now(); pwr.Expiry.After(ct) {
if currentTime := time.Now(); pwr.Expiry.After(currentTime) {
user, status, err := app.jf.userByName(pwr.Username, false)
if !(status == 200 || status == 204) || err != nil {
app.err.Printf("Failed to get users from Jellyfin: Code %d", status)