FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Account Lockout custom message

    Scheduled Pinned Locked Moved Solved
    Q&A
    1
    2
    728
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alex Patterson
      last edited by

      I am setting up account lockout and I would like to setup a custom message. Is it possible to customize the Account Lockout Message? If so, how?

      1 Reply Last reply Reply Quote 1
      • A
        Alex Patterson
        last edited by

        You can customize the message the user will be presented within the messages bundle of a theme (Themes > Your Theme > Edit > Messages). In this case, you will want to modify the following message key.

        [UserLockedException]=Your account has been locked. Please contact your system administrator.
        

        You can modify this message to your requirements

        [UserLockedException]=FooBarBaz
        

        Your modification will be displayed to the end user.

        found variables for other messages displayed to the user as part of the Login Flow, but not for the Account Lockout Message.

        I find exporting the entire message bundle first (by "selecting all" <CTRL + A> from the admin UI) and then pasting the result in a code editor to find a message key is sometimes easier. We do have some adjacent documentation here.

        For reference only, our Theme API is also available here

        1 Reply Last reply Reply Quote 0
        • A Alex Patterson has marked this topic as solved on
        • First post
          Last post