{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1648","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1648/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1648/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1648/events","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/1648","id":55953206,"number":1648,"title":"Users should be able to log in from the landing page","user":{"login":"HarryRybacki","id":2614670,"avatar_url":"https://avatars.githubusercontent.com/u/2614670?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryRybacki","html_url":"https://github.com/HarryRybacki","followers_url":"https://api.github.com/users/HarryRybacki/followers","following_url":"https://api.github.com/users/HarryRybacki/following{/other_user}","gists_url":"https://api.github.com/users/HarryRybacki/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryRybacki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryRybacki/subscriptions","organizations_url":"https://api.github.com/users/HarryRybacki/orgs","repos_url":"https://api.github.com/users/HarryRybacki/repos","events_url":"https://api.github.com/users/HarryRybacki/events{/privacy}","received_events_url":"https://api.github.com/users/HarryRybacki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/discuss","name":"discuss","color":"009800"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/UI","name":"UI","color":"660099"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-01-29T20:36:22Z","updated_at":"2015-01-30T18:05:07Z","closed_at":null,"body":"### Problem\r\n\r\nUnlike new users wanting to sign up for an account, existing users are required to navigate away from the landing page by clicking on the 'Create an Account or Sign-in' button at the top right of the navbar if they wish to log in to their accounts. ![screen shot 2015-01-29 at 3 34 36 pm](https://cloud.githubusercontent.com/assets/2614670/5965733/62b50574-a7cc-11e4-914a-2bb449dc4d42.png) This unintuitive and does not follow common patterns found on most mainstream web services. \r\n\r\n### Solution\r\n\r\nReplace the 'Create an Account or Sign-in' button on the navbar with a sign-in widget on the landing page. All of the functionality that currently exists (standard username/password, two-factor input, and forgotten passwords) can be incorporated. \r\n![screen shot 2015-01-29 at 3 37 06 pm](https://cloud.githubusercontent.com/assets/2614670/5965790/c4cfb344-a7cc-11e4-845e-499c8e7c4558.png)\r\n\r\n### Notes\r\n\r\n1. This will not remove the page users currently use to sign in. It can still be used for redirects when unauthorized access is attempted e.g. a user who is not logged in navigates to a bookmark he/she has for a private project/component.\r\n2. Two-factor input -- there are two routes for allowing users to enter two-factor codes\r\n  1. Expand the new widget to include a third, optional field for two-factor codes like what currently exists.\r\n  2. Create a more standard widget (only username/password) and redirect users that have two-factor auth enabled to another page after entering username/password where they can enter their two-factor code. This seems to be a common pattern.\r\n3. I plan on working on this feature request\r\n\r\n**Input requested!**"},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/72243301","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/1648#issuecomment-72243301","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/1648","id":72243301,"user":{"login":"samanehsan","id":6414394,"avatar_url":"https://avatars.githubusercontent.com/u/6414394?v=3","gravatar_id":"","url":"https://api.github.com/users/samanehsan","html_url":"https://github.com/samanehsan","followers_url":"https://api.github.com/users/samanehsan/followers","following_url":"https://api.github.com/users/samanehsan/following{/other_user}","gists_url":"https://api.github.com/users/samanehsan/gists{/gist_id}","starred_url":"https://api.github.com/users/samanehsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samanehsan/subscriptions","organizations_url":"https://api.github.com/users/samanehsan/orgs","repos_url":"https://api.github.com/users/samanehsan/repos","events_url":"https://api.github.com/users/samanehsan/events{/privacy}","received_events_url":"https://api.github.com/users/samanehsan/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T18:05:07Z","updated_at":"2015-01-30T18:05:07Z","body":"@HarryRybacki, issue #879 has some discussion about re-working the login process that you might be able to address as well. "}}