evaluate cURL error code to log the reason why a login failed
Verifying login data can fail for a number of reasons like temporary connection failure to the IMAP server, Internal problems of the IMAP server, or actually wrong username / password combination.
This change logs the reason for login failures, helping server admins to diagnose login problems and better support their users.
Ideally, we would have an option to pass the reason upwards, so the NextCloud login system can show appropriate errors to users attempting to login.
Changes proposed in this pull request:
Verifying login data can fail for a number of reasons like temporary connection failure to the IMAP server, Internal problems of the IMAP server, or actually wrong username / password combination.
This change logs the reason for login failures, helping server admins to diagnose login problems and better support their users.
Ideally, we would have an option to pass the reason upwards, so the NextCloud login system can show appropriate errors to users attempting to login.