Skip to content

Commit

Permalink
- delay for bad login
Browse files Browse the repository at this point in the history
  • Loading branch information
ipcjk committed Aug 31, 2021
1 parent 649f05e commit fd1b91b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ func login(writer http.ResponseWriter, request *http.Request, H sattypes.BaseHan
return
}
// login did not work, password mismatch
// delay
time.Sleep(time.Second * 3)
// clean session and jump back to main template
cleanAndTemplate(2, err)
return
}
Expand Down

0 comments on commit fd1b91b

Please sign in to comment.