{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/mail/issues/1487","repository_url":"https://api.github.com/repos/owncloud/mail","labels_url":"https://api.github.com/repos/owncloud/mail/issues/1487/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/mail/issues/1487/comments","events_url":"https://api.github.com/repos/owncloud/mail/issues/1487/events","html_url":"https://github.com/owncloud/mail/issues/1487","id":154048798,"number":1487,"title":"Automatically login if ownCloud username is an email address","user":{"login":"Zepmann","id":4273943,"avatar_url":"https://avatars.githubusercontent.com/u/4273943?v=3","gravatar_id":"","url":"https://api.github.com/users/Zepmann","html_url":"https://github.com/Zepmann","followers_url":"https://api.github.com/users/Zepmann/followers","following_url":"https://api.github.com/users/Zepmann/following{/other_user}","gists_url":"https://api.github.com/users/Zepmann/gists{/gist_id}","starred_url":"https://api.github.com/users/Zepmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zepmann/subscriptions","organizations_url":"https://api.github.com/users/Zepmann/orgs","repos_url":"https://api.github.com/users/Zepmann/repos","events_url":"https://api.github.com/users/Zepmann/events{/privacy}","received_events_url":"https://api.github.com/users/Zepmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-10T16:22:35Z","updated_at":"2016-05-10T16:50:50Z","closed_at":"2016-05-10T16:50:50Z","body":"### Steps to reproduce\r\n1. Enable Mail app as admin.\r\n2. Log out as admin.\r\n3. (at the login form) Enter an email address as the ownCloud username.\r\n4. Enter the correct password to login to ownCloud.\r\n5. Access the Mail app.\r\n\r\n### Expected behaviour\r\nMail app should attempt to use the ownCloud username from step 3 to login automatically. The email address is retrieved from step 3. The password associated with the email address (used by the IMAP and SMTP server) is retrieved from step 4. The Mail app should *not* store the password in the database for this default account if it logs in successfully. Instead, the password should be stored in memory for as long as the user's ownCloud session is logged in.\r\n\r\nThis will allow a seamless integration in ownCloud installations that use the [External user support app](https://doc.owncloud.org/server/9.0/admin_manual/configuration_user/user_auth_ftp_smb_imap.html) to authenticate users against an IMAP server that requires the full email address when authenticating. An advantage is that an up-to-date password is always available, assuming the user's password does not change once logged into ownCloud. Another advantage is that IMAP/SMTP passwords do not need to be stored persistently. Finally, from a usability perspective it is just convenient: the user never needs to enter his password twice, and does not need to re-enter the password (for the email address used as an ownCloud username) in the Mail app if it ever changes.\r\n\r\nThe Mail app could check whether the External user authentication app is enabled in addition to the use of an email address to login to ownCloud, before it will attempt to automatically login the user. Alternatively, the admin could enable auto-login (possibly with manually specified IMAP and SMTP settings) through `config.php` configuration option(s) or through the Admin configuration page.\r\n\r\n### Actual behaviour\r\nMail app asks for the user's password.\r\n\r\n### ownCloud Mail\r\n\r\n**ownCloud Mail version:** 0.4.4\r\n\r\n**Mailserver or service:** Self-hosted (and *only* if IMAP is used to login to ownCloud)\r\n\r\n**Transport security - IMAP:** whatever the admin configures or is auto-detected.\r\n\r\n**Transport security - SMTP:** whatever the admin configures or is auto-detected.\r\n\r\n**Number of accounts:** 1 to infinite\r\n\r\n**ownCloud Mail version build date:** N/A\r\n\r\n\r\n### ownCloud Core\r\nNot relevant for feature request, so snipped.\r\n\r\n### Other thoughts\r\n- This function was supported by the now defunct Roundcube app.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34092522-automatically-login-if-owncloud-username-is-an-email-address?utm_campaign=plugin&utm_content=tracker%2F216487&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F216487&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}