Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1681

Add "Forgot Password" functionality to Admin Console

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Scheduled
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.3.0
    • Component/s: Security
    • Labels:
      None

      Description

      Plan:

      1. change "u:OnResetLostPassword" event to call "$this->setNextTemplate($event);" at the end - 0.3h
      2. on "/login.tpl" template move code in <inp2:m_if check="m_Param" name="http_auth"> block, that is located after footer div into same IF in main page part - 0.2h
      3. create "/designs/without_login_design.tpl" design based on "/login.tpl" template, where configurable part would be rendered inside <inp2:m_if check="m_Param" name="http_auth"> IF statement - 0.4h
      4. refactor "/login.tpl" template to use "/designs/without_login_design.tpl" design - 0.1h
      5. modify the "u:OnForgotPassword" event to: - 0.4h
        • when used from Admin Console, then allow resetting password of Administrators only (UserType=1)
        • when used from Front-End, then allow resetting password of Regular users only (UserType=0)
      6. create "/login/forgot_password_reset_notice.tpl" template (use "/designs/without_login_design.tpl" design) like template with same name from "advanced" theme, that will: - 0.5h
        • show heading & text (create missing admin phrases with adapted from Front-End texts)
        • show link/button for going back to homepage (that internally would redirect to login page anyway)
      7. create "/login/forgot_password_reset.tpl" template (use "/designs/without_login_design.tpl" design) like template with same name from "advanced" theme, that will: - 0.5h
        • show heading & text (create missing admin phrases with adapted from Front-End texts)
        • show inputs for entering new password
        • have "next_template" hidden field with "index" value
        • have button, that would submit form with "u.forgot:OnResetLostPassword" event
      8. create "/login/forgot_password.tpl" template (use "/designs/without_login_design.tpl" design) like template with same name from "advanced" theme, that: - 0.5h
        • allows entering username/e-mail via single field
        • have "template_success" hidden field with "login/forgot_password_reset_notice" value
        • have "reset_confirm_template" hidden field with "login/forgot_password_reset" value
        • have single button, that once pressed will submit the form using "u:OnForgotPassword" event
      9. add "Forgot Password?" link (only when "DBG_RESET_ROOT" constant isn't defined) to the bottom of Admin Console login form, that once clicked would redirect to "/login/forgot_password.tpl" template - 0.1h

      Quote: 3h*1.4 (doing) + 1h (quoting) = 5h

        Attachments

        1. 1.png
          1.png
          166 kB
        2. 2.png
          2.png
          169 kB
        3. 3.png
          3.png
          176 kB
        4. 4.png
          4.png
          161 kB
        5. change_password_form.png
          change_password_form.png
          170 kB
        6. forgot_password_form.png
          forgot_password_form.png
          166 kB
        7. forgot_password_reset_confirm.png
          forgot_password_reset_confirm.png
          168 kB
        8. forgot_password_reset_notice.png
          forgot_password_reset_notice.png
          168 kB
        9. forgot_password_reset_notice.png
          forgot_password_reset_notice.png
          167 kB
        10. forgot_password_reset.png
          forgot_password_reset.png
          173 kB
        11. forgot_password.png
          forgot_password.png
          171 kB
        12. login.png
          login.png
          168 kB
        13. login.png
          login.png
          162 kB
        14. password_reset_notice.png
          password_reset_notice.png
          164 kB

          Issue Links

            Activity

              People

              • Assignee:
                glebs Gleb Sinkovskiy [Intechnic]
                Reporter:
                alex Alex
                Developer:
                Gleb Sinkovskiy [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4h Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10h 7m
                  10h 7m