{"templateId":"markdown","sharedDataIds":{},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"cPanel & WHM Developer Portal","description":"With its world-class support and rich feature set, cPanel &amp; WHM has been the industry-leading web hosting platform for over 20 years. Trusted worldwide by our technology partners WordPress, CloudLinux, LiteSpeed, and more.","siteUrl":"https://api.docs.cpanel.net/","image":"/assets/cpanel-whm.ccd85fdccb18de0645f8a6ebf38e36a0489b92fc9d4ca92776f06aa5a160b167.db81178d.svg","keywords":"documentation, api, portal, cpanel","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"[%\n\n    #----------------------------------------------------------------------\n    # Arguments received by this template:\n    # This list may not be exhaustive, and other parameters may be added or available.\n    #\n    # user - Reset password user\n\n%]\n<div id=\"reset-forms\">\n    <script type=\"text/javascript\">\n    function toggle(id) {\n        var el = document.getElementById(id);\n        if (el) {\n            if (el.style.display === \"none\") {\n                el.style.display = \"\";\n            } else {\n                el.style.display = \"none\";\n            }\n        }\n    }\n    </script>\n    <form id=\"reset_form\" novalidate action=\"resetpass\" method=\"post\">\n        <!--prevent submit on Enter if login button is disabled-->\n        <input style=\"display:none\" />\n\n        <input type=\"hidden\" name=\"user\" value=\"[% user.html() %]\" />\n        <input type=\"hidden\" name=\"action\" value=\"seccode\" />\n        <input type=\"hidden\" name=\"debug\" value=\"[%CPANEL.is_debug_mode_enabled() ? '1' : '' %]\">\n\n        <div class=\"input-req-login\">\n            <label for=\"confirmation\">[% locale.maketext('Security Code') %]</label>\n        </div>\n        <div class=\"input-field-login no-icon\">\n            <input name=\"confirm\" type=\"text\" class=\"std_textbox\" id=\"confirmation\" maxlength=\"16\" required autocomplete=\"off\" autofocus>\n        </div>\n        <div class=\"pnlResend\">\n            <a id=\"btnResend\"\n               class=\"lnkResend\"\n               href=\"?user=[% user.html() %]&action=resend\">\n                [% locale.maketext('Send Security Code Again') %]\n            </a>\n            <a onclick=\"toggle('msgResendMore')\" class=\"btnMore\"\n                  title=\"[% locale.maketext('More') %]\">\n                (?)\n            </a>\n            <span id=\"msgResendMore\" style=\"display:none\">\n                [% locale.maketext('If you have not received the email that contains the security code, check your contact email account's spam. Some email providers may identify the password-reset email as spam. If necessary, you can request the server send another email.') %] <a id=\"btnCloseMore\" class=\"btnMore\" onclick=\"toggle('msgResendMore')\">[% locale.maketext('Close') %]</a>\n            </span>\n        </div>\n        <div id=\"reset-note\" class=\"reset-input-note\">\n            <p>[% locale.maketext('[output,strong,Please keep this browser window open.]') %]</p>\n            <p>[% locale.maketext('You must enter the code in the same browser from which you initiated the password reset request.') %]</p>\n        </div>\n        <div class=\"controls\">\n            <div id=\"confirm-submit-btn\" class=\"login-btn\">\n                <button type=\"submit\" id=\"confirm-submit\">[% locale.maketext('Submit') %]</button>\n            </div>\n            <div class=\"reset-pw\">\n                <a href=\"/\">[% locale.maketext('Cancel') %]</a>\n            </div>\n        </div>\n        <div class=\"clear\"></div>\n    </form>\n    <span id=\"resetpass-seccode\">[%# marker for testing%]</span>\n</div>\n"},"children":[]}]},"headings":[],"frontmatter":{"seo":{"title":""}},"lastModified":"2026-11-03T20:46:36.111Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/quickstart-development-guide/tutorial-create-custom-branded-login-pages/resetpass-confirmation","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}