nextcloud / user_external

👥 External user authentication methods like IMAP, SMB and FTP
https://apps.nextcloud.com/apps/user_external
107 stars 64 forks source link

Distinguish wrong credentials from other problems (IMAP) #228

Closed BjoKaSH closed 3 months ago

BjoKaSH commented 1 year ago

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.

violoncelloCH commented 3 months ago

Thanks for the contribution @BjoKaSH