Anonymous | Login | Signup for a new account | 2024-04-29 21:48 CDT |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
View Revisions: Issue #657 | [ Back to Issue ] | ||
Summary | 0000657: Ability to Reset ROOT password to access Admin Console | ||
Revision | 2011-09-26 03:52:27 by alex | ||
Additional Information | Plan: 1. create new ROOT.RESET.PASSWORD email event (Type = Admin); see other email events with this type to determine what values should be placed in other fields 2. export newly created record from Events table into install/upgrades.sql and install/install_data.sql (make sure, that there are no translatable columns present in insert statement, see other events in install_data.sql to get idea) 3. Event text could be: "Your new password is: <inp2:m_Get name="root_password"/>" 1. create u:OnResetRootPassword event, that would use - kUtil::generatePassword method to generate new password - kPasswordFormatter::EncryptPassword with proper salt (see user event handler) to encrypt password - kApplication::SetConfigValue to change RootPass configuration variable value - send newly create e-mail event to admin via kApplication::EmailEventAdmin method - do $event->SetRedirectParam('reset', 1) 4. in UsersEventHandler::CheckPermission method allow that event execution only, when DBG_RESET_ROOT constant is defined & set (e.g. defined('DBG_RESET_ROOT') && DBG_RESET_ROOT) 5. add a "Reset "root" password" link (will be a phrase) under admin login form, when DBG_RESET_ROOT constant is defined & set 6. once link from above is clicked, then call u:OnResetRootPassword event 7. add a check for "reset" url parameter via m_if tag to login template and display nice alert message, like "Your "root" password has been reset. Please remove DBG_RESET_ROOT constant and check your e-mail address." 8. do language pack export & merge to install/english.lang 9. do install/upgrade to verify that database content after upgrade/install will match the on you've create right now ------------ Hours: 1. new e-mail event - 1 h 2. new event - 0.5 h 3. template modifications - 0.5 h 4. install/upgrade/export stuff - 1 h ---- total: 3 h |
||
Revision | 2011-09-25 09:28:44 by alex | ||
Additional Information |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic In-Portal Open Source CMS |