Web site continually submitting Username and Password without a successful login

  • 7940487
  • 19-Aug-2009
  • 26-Apr-2012

Environment

Novell SecureLogin SSO



Situation

When SSO enabling a web site, the following commands are causing the page to continually submit and loop.

Type $Username #1
Type $Password #2
Submit

Resolution

The script has no logic to tell it that a successful login has taken place.  The script simply sees empty fields (which it fills as it should) and then submits the form.

Logic should be added to the script to determine that a successful login has taken place. 

One example could be:

GetText ?text

If "Login Failed" -in ?text
   DisplayVariables
EndIf

If "Login Required" -in ?text
   Type $Username #1
   Type $Password #2
   Submit
EndIf


Additional Information

The example script will only fire if the words "Login Required" are located on the web page with that particular form.  However, if it reads "Login Failed" before that...it will give the user an opportunity to fix their credentials.