CRITFC / Helpdesk

Parent repository for tribal CDMS documentation and issues
1 stars 0 forks source link

Issues When Attempting to Login with Invalid Username and Password. #83

Open MatteoBerg opened 1 year ago

MatteoBerg commented 1 year ago

Expected Behavior

Upon attempting to login with an invalid username, users should be presented with an alert/message informing them that the username they are attempting to use is invalid.

When attempting to log in with an invalid password users should be presented with an "Invalid Password" message.

Screenshot/Recording:

Image


Actual Behavior

Currently, the services code checks if a username is valid AND not inactive which only provides a message of "Username is inactive.".

For an invalid password the application currently gets stuck on "Logging in...".

Screenshot/Recording:

Image


Steps to Reproduce the Problem

  1. Attempt to login with a username that you know is invalid.
  2. Attempt to login with an invalid password.
MatteoBerg commented 1 year ago

Invalid Password Fix

Remove the adconnectionstring line from the Web.config file beneath your connection string.

<add name="adconnectionstring" connectionstring="" />

Remove the "membership" block from the Web.config file.

<membership defaultProvider="ADMembershipProvider">
      <providers>
        <add name="ADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider" connectionStringName="ADConnectionString" attributeMapUsername="" connectionUsername="" connectionPassword="" />
      </providers>
    </membership>
MatteoBerg commented 1 year ago

"{admin1} is not a valid username" "Please contact your System Administrator"