{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","settings":"","params":[],"results":{"codes":[]}},"next":{"description":"","pages":[]},"title":"Password Reset","type":"basic","slug":"password-reset","excerpt":"","body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Forgot Password\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/JeTq2IfRZe7hrEEGyPxD_Screen%20Shot%202016-04-21%20at%202.28.19%20AM.png\",\n        \"Screen Shot 2016-04-21 at 2.28.19 AM.png\",\n        \"824\",\n        \"478\",\n        \"#089be1\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nForgot password functionality is provided out of the box.\nThe `/forgot-password` route is configured in `routes.config.js`.\nYou have a forgot_password.page.html which holds the forgot-password component.\n\nThe forgot-password component sends an email with a reset-password link.\nYou can check the logic behind it in Auth\\PasswordResetController.php.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Reset Link\",\n  \"body\": \"The default link is sent as **localhost:8000**. You need to add your own `env` variable to manage the link properly.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Email \\\"from\\\" address\",\n  \"body\": \"Before using this feature, you need to replace the \\\"from\\\" address in `Auth\\\\PasswordResetController.php` from `noreply:::at:::example.com` to your own domain.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Reset Password\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/qI8pUzE1SFCTsQu5op4S_Screen%20Shot%202016-04-21%20at%202.29.32%20AM.png\",\n        \"Screen Shot 2016-04-21 at 2.29.32 AM.png\",\n        \"1084\",\n        \"398\",\n        \"#079be1\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nClicking on the reset password link from the email will open the `/reset-password/:email/:token` route.\nThe `reset-password` component will then immediately check the validity of the token, while a material design loader is spinning.\n\nOnce it's validated against the database, the reset form above shows up. Submitting the form would successfully reset the password.","updates":[],"order":5,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57ffd85f755a2e1700c2bb13","__v":0,"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"},"project":"567083021dabd80d00b122ae","createdAt":"2016-04-20T23:26:00.333Z","githubsync":"","parentDoc":null,"user":"567082433a32d20d00c45cab","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"}}
[block:api-header] { "type": "basic", "title": "Forgot Password" } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/JeTq2IfRZe7hrEEGyPxD_Screen%20Shot%202016-04-21%20at%202.28.19%20AM.png", "Screen Shot 2016-04-21 at 2.28.19 AM.png", "824", "478", "#089be1", "" ] } ] } [/block] Forgot password functionality is provided out of the box. The `/forgot-password` route is configured in `routes.config.js`. You have a forgot_password.page.html which holds the forgot-password component. The forgot-password component sends an email with a reset-password link. You can check the logic behind it in Auth\PasswordResetController.php. [block:callout] { "type": "warning", "title": "Reset Link", "body": "The default link is sent as **localhost:8000**. You need to add your own `env` variable to manage the link properly." } [/block] [block:callout] { "type": "warning", "title": "Email \"from\" address", "body": "Before using this feature, you need to replace the \"from\" address in `Auth\\PasswordResetController.php` from `[email protected]` to your own domain." } [/block] [block:api-header] { "type": "basic", "title": "Reset Password" } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/qI8pUzE1SFCTsQu5op4S_Screen%20Shot%202016-04-21%20at%202.29.32%20AM.png", "Screen Shot 2016-04-21 at 2.29.32 AM.png", "1084", "398", "#079be1", "" ] } ] } [/block] Clicking on the reset password link from the email will open the `/reset-password/:email/:token` route. The `reset-password` component will then immediately check the validity of the token, while a material design loader is spinning. Once it's validated against the database, the reset form above shows up. Submitting the form would successfully reset the password.