Port of 46361-does-not-log-failed-sign-in-attempts-when-the-database-is-in-read-only-mode to EE
requested to merge 46361-does-not-log-failed-sign-in-attempts-when-the-database-is-in-read-only-mode-ee into master
Remove changes made in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5643/diffs#note_73059683 since those changes was moved to CE https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18957.
Edited by Toon Claes