{"_id":"57ffd85f755a2e1700c2bb12","version":{"_id":"57ffd85f755a2e1700c2bb05","project":"567083021dabd80d00b122ae","__v":1,"createdAt":"2016-10-13T18:54:23.018Z","releaseDate":"2016-10-13T18:54:23.018Z","categories":["57ffd85f755a2e1700c2bb06","57ffd85f755a2e1700c2bb07","57ffd85f755a2e1700c2bb08","57ffd85f755a2e1700c2bb09","57ffd85f755a2e1700c2bb0a","57ffd85f755a2e1700c2bb0b","57ffd85f755a2e1700c2bb0c","57ffd85f755a2e1700c2bb0d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.4.0","version":"3.4"},"project":"567083021dabd80d00b122ae","category":{"_id":"57ffd85f755a2e1700c2bb0b","__v":0,"version":"57ffd85f755a2e1700c2bb05","project":"567083021dabd80d00b122ae","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-18T23:14:19.433Z","from_sync":false,"order":5,"slug":"jwt-auth","title":"JWT Auth"},"parentDoc":null,"user":"567082433a32d20d00c45cab","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-20T21:42:02.235Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Satellizer\"\n}\n[/block]\nLaravel & Angular material starter includes [satellizer](https://github.com/sahat/satellizer) for managing the token.\n\nYou can customize satellizer's configuration in `angular/config/satellizer.config.js`.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Registration functionality\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/NsKdOEzjRmKncNS6JN9g_Screen%20Shot%202016-04-21%20at%2012.48.07%20AM.png\",\n        \"Screen Shot 2016-04-21 at 12.48.07 AM.png\",\n        \"996\",\n        \"820\",\n        \"#049be3\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nRegistration functionality is provided out of the box.\nThe `/register` route is configured in `routes.config.js`.\nYou have a `register.page.html` which holds the `register-form` component.\n\nThe `register-form` components **signs up** the user using satellizer and `Auth\\AuthController.php`.\nIf you want to add new fields, you would need to edit the view, component and AuthController.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Login functionality\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/l5vRJ9UDRvyrZ4oxwf4z_Screen%20Shot%202016-04-21%20at%2012.48.21%20AM.png\",\n        \"Screen Shot 2016-04-21 at 12.48.21 AM.png\",\n        \"882\",\n        \"706\",\n        \"#049be3\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nLogin functionality is provided out of the box.\nThe `/login` route is configured in `routes.config.js`.\nYou have a `login.page.html` which holds the `login-form` component.\n\nThe `login-form` components **authenticates** the user using satellizer and `Auth\\AuthController.php`.\nYou can check the logic behind it in **Auth\\AuthController.php**.","excerpt":"","slug":"login-register-functionality","type":"basic","title":"Registeration & Login"}

Registeration & Login


[block:api-header] { "type": "basic", "title": "Satellizer" } [/block] Laravel & Angular material starter includes [satellizer](https://github.com/sahat/satellizer) for managing the token. You can customize satellizer's configuration in `angular/config/satellizer.config.js`. [block:api-header] { "type": "basic", "title": "Registration functionality" } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/NsKdOEzjRmKncNS6JN9g_Screen%20Shot%202016-04-21%20at%2012.48.07%20AM.png", "Screen Shot 2016-04-21 at 12.48.07 AM.png", "996", "820", "#049be3", "" ] } ] } [/block] Registration functionality is provided out of the box. The `/register` route is configured in `routes.config.js`. You have a `register.page.html` which holds the `register-form` component. The `register-form` components **signs up** the user using satellizer and `Auth\AuthController.php`. If you want to add new fields, you would need to edit the view, component and AuthController. [block:api-header] { "type": "basic", "title": "Login functionality" } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/l5vRJ9UDRvyrZ4oxwf4z_Screen%20Shot%202016-04-21%20at%2012.48.21%20AM.png", "Screen Shot 2016-04-21 at 12.48.21 AM.png", "882", "706", "#049be3", "" ] } ] } [/block] Login functionality is provided out of the box. The `/login` route is configured in `routes.config.js`. You have a `login.page.html` which holds the `login-form` component. The `login-form` components **authenticates** the user using satellizer and `Auth\AuthController.php`. You can check the logic behind it in **Auth\AuthController.php**.