{"action":"opened","issue":{"url":"https://api.github.com/repos/coreos/dex/issues/332","repository_url":"https://api.github.com/repos/coreos/dex","labels_url":"https://api.github.com/repos/coreos/dex/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/coreos/dex/issues/332/comments","events_url":"https://api.github.com/repos/coreos/dex/issues/332/events","html_url":"https://github.com/coreos/dex/issues/332","id":135861576,"number":332,"title":"regression: Not able to log in with local connector when running dex-worker with --no-db","user":{"login":"fnordahl","id":7078488,"avatar_url":"https://avatars.githubusercontent.com/u/7078488?v=3","gravatar_id":"","url":"https://api.github.com/users/fnordahl","html_url":"https://github.com/fnordahl","followers_url":"https://api.github.com/users/fnordahl/followers","following_url":"https://api.github.com/users/fnordahl/following{/other_user}","gists_url":"https://api.github.com/users/fnordahl/gists{/gist_id}","starred_url":"https://api.github.com/users/fnordahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnordahl/subscriptions","organizations_url":"https://api.github.com/users/fnordahl/orgs","repos_url":"https://api.github.com/users/fnordahl/repos","events_url":"https://api.github.com/users/fnordahl/events{/privacy}","received_events_url":"https://api.github.com/users/fnordahl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-23T20:54:36Z","updated_at":"2016-02-23T20:54:36Z","closed_at":null,"body":"PR #304 introduces a regression.\r\n\r\nWith dex-worker running with --no-db it is no longer possible to log in using the local connector with credentials configured in static/fixtures/connectors.json and static/fixtures/users.json.\r\n\r\nAdding some Printlns to password.go UnmarshalJSON function shows that the users are created twice, the first time with valid password info, the second time with blank password.\r\n<pre>diff --git a/user/password.go b/user/password.go\r\nindex 4b93f34..8fb67cf 100644\r\n--- a/user/password.go\r\n+++ b/user/password.go\r\n@@ -153,6 +153,7 @@ func (u *PasswordInfo) UnmarshalJSON(data []byte) error {\r\n        }\r\n \r\n        u.UserID = dec.UserID\r\n+       fmt.Println(\"%v\", u.UserID)\r\n \r\n        u.PasswordExpires = dec.PasswordExpires\r\n \r\n@@ -169,6 +170,7 @@ func (u *PasswordInfo) UnmarshalJSON(data []byte) error {\r\n                        return err\r\n                }\r\n        }\r\n+       fmt.Println(\"%v\", u.Password)\r\n        return nil\r\n }\r\n \r\n</pre>\r\n\r\nWhen running a version of dex prior to the commit of #304 it works as expected\r\n``git checkout 9ca27a20352edfdd335b571bc7a6f61258294cdc``\r\n\r\nUnfortunately I am prohibited from chasing this to the root cause at this time. Maybe you know what's going on from this description, @ericchiang ?"}}