{"action":"opened","issue":{"url":"https://api.github.com/repos/auth0-samples/auth0-angularjs-samples/issues/12","repository_url":"https://api.github.com/repos/auth0-samples/auth0-angularjs-samples","labels_url":"https://api.github.com/repos/auth0-samples/auth0-angularjs-samples/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/auth0-samples/auth0-angularjs-samples/issues/12/comments","events_url":"https://api.github.com/repos/auth0-samples/auth0-angularjs-samples/issues/12/events","html_url":"https://github.com/auth0-samples/auth0-angularjs-samples/issues/12","id":232564270,"number":12,"title":"Error: username option is required","user":{"login":"svanbelleghem","id":3299115,"avatar_url":"https://avatars1.githubusercontent.com/u/3299115?v=3","gravatar_id":"","url":"https://api.github.com/users/svanbelleghem","html_url":"https://github.com/svanbelleghem","followers_url":"https://api.github.com/users/svanbelleghem/followers","following_url":"https://api.github.com/users/svanbelleghem/following{/other_user}","gists_url":"https://api.github.com/users/svanbelleghem/gists{/gist_id}","starred_url":"https://api.github.com/users/svanbelleghem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svanbelleghem/subscriptions","organizations_url":"https://api.github.com/users/svanbelleghem/orgs","repos_url":"https://api.github.com/users/svanbelleghem/repos","events_url":"https://api.github.com/users/svanbelleghem/events{/privacy}","received_events_url":"https://api.github.com/users/svanbelleghem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-31T13:23:51Z","updated_at":"2017-05-31T13:23:51Z","closed_at":null,"body":"Hello,\r\n\r\nI implemented the custom login form but when I press the login button that is supposed to show the login form I receive the following error:\r\n\r\n`Error: username option is required\r\n    at attribute (auth0.js:268)\r\n    at Object.check (auth0.js:295)\r\n    at Authentication.login (auth0.js:2864)\r\n    at Object.login (auth.service.js:14)\r\n    at fn (eval at compile (angular.js:15358), <anonymous>:4:208)\r\n    at callback (angular.js:26994)\r\n    at ChildScope.$eval (angular.js:18161)\r\n    at ChildScope.$apply (angular.js:18261)\r\n    at HTMLButtonElement.<anonymous> (angular.js:26999)\r\n    at defaultHandlerWrapper (angular.js:3734)`\r\n\r\nLogin function in my AuthService:\r\n\r\n`function login(username, password) {\r\n            angularAuth0.client.login({\r\n                realm: 'Username-Password-Authentication',\r\n                username: username,\r\n                password: password,\r\n            }, function(err, authResult) {\r\n                if (err) {\r\n                    console.log(err);\r\n                    alert('Error: ' + err.description + '. Check the console for further details.');\r\n                    return;\r\n                }\r\n                if (authResult && authResult.idToken) {\r\n                    setSession(authResult);\r\n                    $state.go('home');\r\n                }\r\n            });\r\n        }`"}}
{"actor":{"display_login":"svanbelleghem"}}