<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D5WR00001L7FXG0A3Okta Classic EngineAdministrationAnswered2026-02-27T17:12:44.000Z2026-02-25T09:51:16.000Z2026-02-27T17:12:44.000Z
Customizing the "Unable to Sign In" Error in Sign In Page

We would like to customize the default error message displayed on the Okta login form.

/help/servlet/rtaImage?refid=0EMWR00000QfC4g

Is it possible to modify the default message?

 

Any guidance or relevant documentation references would be appreciated.

Thank you.


  • Hello @VladimiraN.49154 (Customer)​ Thank you for posting on our Community page!

     

    The generic "Unable to sign in" error (often caused by invalid credentials) maps to a specific error key in Okta's backend: errors.E0000004. To change the text, you simply need to override this key in the widget's configuration.

    For Customisation guides please see below:

    https://developer.okta.com/docs/guides/brand-and-customize/

    https://developer.okta.com/docs/guides/oie-upgrade-sign-in-widget-i18n/main/

     

    Similar questions:

    https://devforum.okta.com/t/invoke-error-banner-in-login-flow/33038

     

    If you require further assistance my advice would be to reach out via devforum.okta.com to take advantage of their expertise.

    While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-developer work).

     

    Thank you for reaching out to our Community and have a great day!

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
    Selected as Best
    • VladimiraN.49154 (Customer)

      Thank you so much for the quick and on-point response.

      The suggested documentation helped a lot too.

       

      I achieved the requirement by adding the following snippet:

       

      var config = OktaUtil.getSignInWidgetConfig();

       

      if (config.i18n.en){

      config.i18n.en['errors.E0000004'] = 'Custom Text';

      }

       

      in the Sign In page code in the {{{OktaUtil}}} object.

      Expand Post

Loading
Customizing the "Unable to Sign In" Error in Sign In Page