<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Error message when login fails in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737372#M309151</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;we are using the predefined "Login" dynamic content block and modyfied the layout to meet our needs.&lt;BR /&gt;Everything works out fine but I would like to know which script service now is using to verify the users credentials. &lt;BR /&gt;Usecase: For better usability I would like to split up the current error message if either the username is wrong and/or the password. &lt;BR /&gt;Current message: &lt;SPAN style="color: #000000; font-family: Arial; font-size: 13px; text-align: right; background-color: #ffebe8;"&gt;User name or password invalid. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;That's not really specific....&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the "PortletLogin" in Script Includes but that doesn't seem to be the right one. Any ideas?&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
    <pubDate>Sun, 04 May 2014 18:08:20 GMT</pubDate>
    <dc:creator>Patrick Schulte</dc:creator>
    <dc:date>2014-05-04T18:08:20Z</dc:date>
    <item>
      <title>Error message when login fails</title>
      <link>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737372#M309151</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;we are using the predefined "Login" dynamic content block and modyfied the layout to meet our needs.&lt;BR /&gt;Everything works out fine but I would like to know which script service now is using to verify the users credentials. &lt;BR /&gt;Usecase: For better usability I would like to split up the current error message if either the username is wrong and/or the password. &lt;BR /&gt;Current message: &lt;SPAN style="color: #000000; font-family: Arial; font-size: 13px; text-align: right; background-color: #ffebe8;"&gt;User name or password invalid. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;That's not really specific....&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the "PortletLogin" in Script Includes but that doesn't seem to be the right one. Any ideas?&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2014 18:08:20 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737372#M309151</guid>
      <dc:creator>Patrick Schulte</dc:creator>
      <dc:date>2014-05-04T18:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when login fails</title>
      <link>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737373#M309152</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi Patrick,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I would recommend that you leave the message as it. &amp;nbsp; As an IS Auditor, from a security perspective, generic is better. &amp;nbsp; You do NOT want to tell a hacker which part of the login process they have right or wrong.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;My two cents.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Marcia,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;CISA&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2014 18:58:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737373#M309152</guid>
      <dc:creator>marcia_jones</dc:creator>
      <dc:date>2014-06-11T18:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when login fails</title>
      <link>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737374#M309153</link>
      <description>&lt;P&gt;Agree 100%. &amp;nbsp; I understand wanting to help the users out as much as possible, but that would not be a good idea in this particular case.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2014 19:02:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737374#M309153</guid>
      <dc:creator>Jim Coyne</dc:creator>
      <dc:date>2014-06-11T19:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when login fails</title>
      <link>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737375#M309154</link>
      <description>&lt;P&gt;We discussed this internally and came to the same conclusion &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/wink.png"&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Anyways, thanks gusys for the valuable input.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jun 2014 06:22:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737375#M309154</guid>
      <dc:creator>Patrick Schulte</dc:creator>
      <dc:date>2014-06-12T06:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when login fails</title>
      <link>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737376#M309155</link>
      <description>&lt;P&gt;Hi Marcia,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have a similar need: I need to set a custom error message only when the error is related with a LDAP problem, to inform the user that he/she needs to change its password in Windows before to attempt to log-in again. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I've been trying to find where is the code which handles it, but I haven't found it... Any clue?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:58:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737376#M309155</guid>
      <dc:creator>Miguel Sanchez</dc:creator>
      <dc:date>2014-11-27T11:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when login fails</title>
      <link>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737377#M309156</link>
      <description>&lt;P&gt;But lets say you wanted edit it anyway, where would you do that? To advise the use that their account is locked now due to too many failed login attempts, for example.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2016 19:04:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737377#M309156</guid>
      <dc:creator>yvan</dc:creator>
      <dc:date>2016-04-29T19:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when login fails</title>
      <link>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737378#M309157</link>
      <description>&lt;P&gt;Yvan,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The answer to your Question is&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/administer/security/task/t_LockoutForFailedLogins.html" title="https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/administer/security/task/t_LockoutForFailedLogins.html"&gt;Specify lockout for failed login attempts&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;SNC User Lockout Check: Tracks the number of failed login attempts and locks the user account after a specified number of failed login attempts (default: 5).&lt;/LI&gt;&lt;/UL&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;//&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;// Check to see if the user has failed to login too many times&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;// when the limit is reached, lock the user out of the system&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;//&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;var gr = new GlideRecord("sys_user");&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;gr.addQuery("user_name", event.parm1.toString());&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;gr.query();&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;if (gr.next()) {&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.failed_attempts += 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (gr.failed_attempts &amp;gt; 2) {&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.locked_out = true;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.update();&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;gs.log("User " + event.parm1 + " locked out due to too many invalid login attempts");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt; &amp;nbsp; &amp;nbsp; } else {&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gr.update(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Feb 2017 21:04:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737378#M309157</guid>
      <dc:creator>vampyre82nd</dc:creator>
      <dc:date>2017-02-02T21:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error message when login fails</title>
      <link>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737379#M309158</link>
      <description>&lt;P&gt;I still haven't found the answer though. I have so many script includes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For eg. I have "BasicAuth" script include and trying to call it using URL(view_form.login). Basically how an angular post menthod from client script is connected to script include or how a client script is calling script include. Can anyone answer please?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 06:26:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/error-message-when-login-fails/m-p/737379#M309158</guid>
      <dc:creator>Arun101</dc:creator>
      <dc:date>2020-01-23T06:26:39Z</dc:date>
    </item>
  </channel>
</rss>

