{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Registeration & Login","type":"basic","slug":"login-register-functionality","excerpt":"","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**.","updates":[],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57ffd85f755a2e1700c2bb12","createdAt":"2016-04-20T21:42:02.235Z","version":{"version":"3.4","version_clean":"3.4.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["57ffd85f755a2e1700c2bb06","57ffd85f755a2e1700c2bb07","57ffd85f755a2e1700c2bb08","57ffd85f755a2e1700c2bb09","57ffd85f755a2e1700c2bb0a","57ffd85f755a2e1700c2bb0b","57ffd85f755a2e1700c2bb0c","57ffd85f755a2e1700c2bb0d"],"_id":"57ffd85f755a2e1700c2bb05","project":"567083021dabd80d00b122ae","releaseDate":"2016-10-13T18:54:23.018Z","__v":1,"createdAt":"2016-10-13T18:54:23.018Z"},"project":"567083021dabd80d00b122ae","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"JWT Auth","slug":"jwt-auth","order":5,"from_sync":false,"reference":false,"_id":"57ffd85f755a2e1700c2bb0b","__v":0,"version":"57ffd85f755a2e1700c2bb05","project":"567083021dabd80d00b122ae","createdAt":"2015-12-18T23:14:19.433Z"},"parentDoc":null,"user":"567082433a32d20d00c45cab","__v":0,"githubsync":""}

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**.