title: How I can custom my value for error text message - Mikrotik hotstpot
body: <p>I'm new to this. I'm working for an ISP company which related to use of hotspots coding. I having a problem in Mikrotik hotspot when error message occurs. I would like to edit the message in errors.txt by adding the 'between line' (aka <strong><em><code>&lt;br&gt;</code></em></strong>) but I need an idea how txt file work.</p>
  
  <p>In the <em>error.txt</em> that Mikrotik provide. </p>
  
  <pre><code>user-session-limit = no more sessions are allowed for user $(username). Please log out from other device or visit www.something.com
  </code></pre>
  
  <p>And message results in one line on my login page. So I tried</p>
  
  <pre><code>user-session-limit = no more sessions are allowed for user $(username). 
  Please log out from other devices 
  or visit www.something.com
  </code></pre>
  
  <p>The result is the output message appears only one line. So I tried </p>
  
  <pre><code>user-session-limit = no more sessions are allowed for user $(username). $(&lt;br&gt;) Please log out from other devices $(&lt;br&gt;) or visit www.something.com
  </code></pre>
  
  <p>And the result comes out with the code itself.</p>
  
  <h2>error.txt</h2>
  
  <pre><code># This file contains error messages which are shown to user, when http/https
  # login is used.
  # These messages can be changed to make user interface more friendly, including
  # translations to different languages.
  #
  # Various variables can be used here as well. Most frequently used ones are:
  #   $(error-orig)   - original error message from hotspot
  #   $(ip)       - ip address of a client
  #   $(username) - username of client trying to log in
  
  # internal-error
  # It should never happen. If it will, error page will be shown
  # displaying this error message (error-orig will describe what has happened)
  
  internal-error = internal error ($(error-orig))
  
  # config-error
  # Should never happen if hotspot is configured properly.
  
  config-error = configuration error ($(error-orig))
  
  # not-logged-in
  # Will happen, if status or logout page is requested by user,
  # which actually is not logged in
  
  not-logged-in = you are not logged in (ip $(ip))
  
  # ippool-empty
  # IP address for user is to be assigned from ip pool, but there are no more
  # addresses in that pool
  
  ippool-empty = cannot assign ip address - no more free addresses from pool
  
  # shutting-down
  # When shutdown is executed, new clients are not accepted
  
  shutting-down = hotspot service is shutting down
  
  # user-session-limit
  # If user profile has limit of shared-users, then this error will be shown
  # after reaching this limit
  
  **user-session-limit = no more sessions are allowed for user $(username)**
  
  # license-session-limit
  # Depending on licence number of active hotspot clients is limited to
  # one or another amount. If this limit is reached, following error is displayed.
  
  license-session-limit = session limit reached ($(error-orig))
  
  # wrong-mac-username
  # If username looks like MAC address (12:34:56:78:9a:bc), but is not
  # a MAC address of this client, login is rejected
  
  wrong-mac-username = invalid username ($(username)): this MAC address is not yours
  
  # chap-missing
  # If http-chap login method is used, but hotspot program does not receive
  # back encrypted password, this error message is shown.
  # Possible reasons of failure:
  #   - JavaScript is not enabled in web browser;
  #   - login.html page is not valid;
  #   - challenge value has expired on server (more than 1h of inactivity);
  #   - http-chap login method is recently removed;
  # If JavaScript is enabled and login.html page is valid,
  # then retrying to login usually fixes this problem.
  
  chap-missing = web browser did not send challenge response (try again, enable JavaScript)
  
  # invalid-username
  # Most general case of invalid username or password. If RADIUS server
  # has sent an error string with Access-Reject message, then it will
  # override this setting.
  
  invalid-username = invalid username or password
  
  # invalid-mac
  # Local users (on hotspot server) can be bound to some MAC address. If login
  # from different MAC is tried, this error message will be shown.
  
  invalid-mac = user $(username) is not allowed to log in from this MAC address
  
  # uptime-limit, traffic-limit
  # For local hotspot users in case if limits are reached
  
  uptime-limit = user $(username) has reached uptime limit
  traffic-limit = user $(username) has reached traffic limit
  
  # radius-timeout
  # User is authenticated by RADIUS server, but no response is received from it,
  # following error will be shown.
  
  radius-timeout = RADIUS server is not responding
  
  # auth-in-progress
  # Authorization in progress. Client already has issued an authorization request
  # which is not yet complete.
  
  auth-in-progress = already authorizing, retry later
  
  # radius-reply
  # Radius server returned some custom error message
  
  radius-reply = $(error-orig)
  </code></pre>
  
  <h2>error.html</h2>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;mikrotik hotspot &gt; error&lt;/title&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
  &lt;meta http-equiv="pragma" content="no-cache"&gt;
  &lt;meta http-equiv="expires" content="-1"&gt;
  &lt;style type="text/css"&gt;
  
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;table width="100%" height="100%"&gt;
  
  &lt;tr&gt;
  &lt;td align="center" valign="middle"&gt;
  Hotspot ERROR: $(error)&lt;br&gt;
  &lt;br&gt;
  Login page: &lt;a href="$(link-login)"&gt;$(link-login)&lt;/a&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <h2>login.html</h2>
  
  <pre><code>
  $(if error)
  &lt;br /&gt;
  &lt;div style="color: #FF8080; font-size: 9px"&gt;
  $(error)
  &lt;/div&gt;
  $(endif)
  
  </code></pre>
  
  <p>I expect the output on my login page to print the text error message properly. I do have already figured out it concerns to javascript or jquery value declaration but I have no clue how I can coding my custom text.</p>
  
  <p>This is a problem I have at the moment (<a href="https://ibb.co/v4WjDsF" rel="nofollow noreferrer">https://ibb.co/v4WjDsF</a>)</p>
  
  <p>What I expect (<a href="https://ibb.co/zm1ggm5" rel="nofollow noreferrer">https://ibb.co/zm1ggm5</a>)</p>
  
  <p>So it would be much appreciated if there is any advice
  Thank in advance</p>