{"id":20961774,"url":"https://github.com/heimrichhannot/contao-backend-lost-password-bundle","last_synced_at":"2025-05-14T07:31:02.093Z","repository":{"id":48420751,"uuid":"232085623","full_name":"heimrichhannot/contao-backend-lost-password-bundle","owner":"heimrichhannot","description":"This bundle offers a lost password function for the backend of the Contao CMS.","archived":false,"fork":false,"pushed_at":"2025-03-17T13:07:43.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-02T20:47:49.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heimrichhannot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-06T11:20:03.000Z","updated_at":"2025-03-17T13:07:41.000Z","dependencies_parsed_at":"2022-08-24T08:11:11.248Z","dependency_job_id":null,"html_url":"https://github.com/heimrichhannot/contao-backend-lost-password-bundle","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-backend-lost-password-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-backend-lost-password-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-backend-lost-password-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-backend-lost-password-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimrichhannot","download_url":"https://codeload.github.com/heimrichhannot/contao-backend-lost-password-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254094848,"owners_count":22013648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T02:17:04.658Z","updated_at":"2025-05-14T07:31:00.366Z","avatar_url":"https://github.com/heimrichhannot.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contao Backend Lost Password Bundle\n\nThis bundle offers a lost password function for the backend of the Contao CMS.\n\n![alt preview](docs/lost-password.png)\n\n## Features\n\n- Never send new passwords to your customers again if they have forgotten their old ones. :-)\n- After requesting a new password, a password reset link is sent to the user's email.\n- Select a mailer transport for outgoing mails in the settings.\n\n## Installation\n\n1. Install via composer: `composer require heimrichhannot/contao-backend-lost-password-bundle` and update your database.\n1. Set the `huh_backend_lost_password.add_to_template` to true if you want the lost password link automatically added to you backend login template.\n\n```yaml\n# config/config.yml\nhuh_backend_lost_password:\n    add_to_template: true\n```\n\n## Customize\n\n### Use Notification center\n\nYou can use [Notification Center](https://github.com/terminal42/contao-notification_center) to send the password request.\n\n1. Create a notification of type `User: Lost password` with `##recipient_email##` as recipient and content that contains `##link##` (the link to the password reset page).\n    You can use additional token: `##domain##` and user data withing `##user_*##`.\n2. Set the id of the notification in your project configuration in `huh_backend_lost_password.nc_notification`.\n\n```yaml\n# config/config.yml\nhuh_backend_lost_password:\n  nc_notification: 5\n```\n\n### Usage in a custom template\n\nYou can insert the lost password link in a custom login template where you want by calling `BackendLostPasswortManager-\u003egetLostPasswordLink()`.\n\n```\n\u003c!-- ... --\u003e\n\u003cdiv class=\"widget\"\u003e\n    \u003clabel for=\"password\"\u003e\u003c?= $this-\u003epassword ?\u003e\u003c/label\u003e\n    \u003cinput type=\"password\" name=\"password\" id=\"password\" class=\"tl_text\" value=\"\" placeholder=\"\u003c?= $this-\u003epassword ?\u003e\" required\u003e\n\u003c/div\u003e\n\n\u003c?= System::getContainer()-\u003eget(\\HeimrichHannot\\BackendLostPasswordBundle\\Manager\\BackendLostPasswordManager::class)-\u003egetLostPasswordLink() ?\u003e\n\n\u003cdiv class=\"submit_container cf\"\u003e\n    \u003cbutton type=\"submit\" name=\"login\" id=\"login\" class=\"tl_submit\"\u003e\u003c?= $this-\u003eloginButton ?\u003e\u003c/button\u003e\n    \u003ca href=\"\u003c?= $this-\u003eroute('contao_root') ?\u003e\" class=\"footer_preview\"\u003e\u003c?= $this-\u003efeLink ?\u003e ›\u003c/a\u003e\n\u003c/div\u003e\n\u003c!-- ... --\u003e\n```\n\n### Adjust the email's text\n\n**Hint: You can also set a notification center message by setting the id in your config.yml (see below).**\n\nSimply override the following `$GLOBALS` entries:\n\n```\n$GLOBALS['TL_LANG']['MSC']['backendLostPassword']['messageSubjectResetPassword']\n$GLOBALS['TL_LANG']['MSC']['backendLostPassword']['messageBodyResetPassword']\n```\n\n## Configuration reference\n\n```yaml\n# Default configuration for extension with alias: \"huh_backend_lost_password\"\nhuh_backend_lost_password:\n\n  # If true, that backend lost password link will be automatically added to the backed login template. Default false. Will be true in the next major version!\n  add_to_template:      false\n\n  # The numeric ID of the notification center notification which is sent for resetting the password.\n  nc_notification:        false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-backend-lost-password-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimrichhannot%2Fcontao-backend-lost-password-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-backend-lost-password-bundle/lists"}