{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/1374","labels_url":"https://api.github.com/repos/gogits/gogs/issues/1374/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1374/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/1374/events","html_url":"https://github.com/gogits/gogs/issues/1374","id":95909319,"number":1374,"title":"SMTP authentication fails after password change within Gogs","user":{"login":"nurtext","id":148175,"avatar_url":"https://avatars.githubusercontent.com/u/148175?v=3","gravatar_id":"","url":"https://api.github.com/users/nurtext","html_url":"https://github.com/nurtext","followers_url":"https://api.github.com/users/nurtext/followers","following_url":"https://api.github.com/users/nurtext/following{/other_user}","gists_url":"https://api.github.com/users/nurtext/gists{/gist_id}","starred_url":"https://api.github.com/users/nurtext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurtext/subscriptions","organizations_url":"https://api.github.com/users/nurtext/orgs","repos_url":"https://api.github.com/users/nurtext/repos","events_url":"https://api.github.com/users/nurtext/events{/privacy}","received_events_url":"https://api.github.com/users/nurtext/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/gogits/gogs/labels/feedback%20needed","name":"feedback needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/gogits/gogs/milestones/15","html_url":"https://github.com/gogits/gogs/milestones/0.8.0","labels_url":"https://api.github.com/repos/gogits/gogs/milestones/15/labels","id":1423407,"number":15,"title":"0.8.0","description":"","creator":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":70,"state":"open","created_at":"2015-11-21T22:31:47Z","updated_at":"2015-12-10T21:34:14Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-07-19T11:57:27Z","updated_at":"2015-12-11T00:03:22Z","closed_at":null,"body":"Hi all,\r\n\r\nI've enabled the SMTP authentication provider and login as well as auto profile creation works so far. \r\n\r\nBut if a user wants to change his password within Gogs, logins with the new password aren't possible. Instead, he gets a 500 message shown. But if he logs in with the old password (which is actually the one for his mail account) it works fine.\r\n\r\nIn my opinion the behavior of the SMTP authentication and auto profile creation should be changed to something like this:\r\n\r\n1. First time login with email address and email password using SMTP authentication creates a new profile (provisoning)\r\n2. If the user changes his/her email address and/or password from within Gogs, the authentication source for the particular user should be set to local instead of SMTP, because the provisioning has already been made within Gogs. This could easily be done by changing the columns `login_type` and `login_source` in table `user`.\r\n\r\nBtw: I already tried to change the authentication source using an admin account in the backend, but this doesn't seem to work as well. See #1375 for more details."},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/163791293","html_url":"https://github.com/gogits/gogs/issues/1374#issuecomment-163791293","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1374","id":163791293,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T00:03:21Z","updated_at":"2015-12-11T00:03:21Z","body":"Now on `develop` branch, non-local users are not allowed to change their password."}}