VICIdial: "Login incorrect, please try again"
As VICIdial prints it
Login incorrect, please try again
Where it appears. On the campaign login form of the agent screen, in bold above the User Login field.
To the point
The agent screen found no user with that ID and password that is Active and has a user level above 0. Check the user record, then save it with a new password: saving a user also sets the failed login count back to 0.
What it means
When the campaign login form is sent, the agent screen asks one question of the users table. Is there a user with this ID and this password, a user level above 0, Active set to Y, and either fewer than 10 failed logins or a last login date more than 15 minutes old? If no user passes, and no narrower reason applies, this message is printed above the form.
The narrower reasons have messages of their own on the same form. "Too many login attempts, try again in 15 minutes" is the lock. "Login incorrect, user names are case sensitive" means the ID was typed with other capitals than the user record has.
A form sent with a user, a password or a campaign shorter than two characters is shown again with no message at all.
Causes
- A wrong user ID or password. Both must match the record exactly.
- Characters the screen removes. Before the check, spaces and the characters
|,&,;,',", the backslash and the backtick are taken out of what was typed. A stored password that holds one of them can never be matched. VICIdial's help says only letters and numbers are allowed in user passwords. - Active is N. The user exists and is switched off.
- User Level is 0. The help text asks for level 1 to log in to the agent screen.
- The lock. Each failed attempt adds 1 to the user's failed login count. With the count at 10 and a last login date inside the past 15 minutes, every attempt is refused with the "Too many login attempts" message, the right password included. Clicking into the Campaign list with a wrong password runs the same check and counts as an attempt.
Checks
- Users > the user. Last Login Info shows the last login date, the failed login count and the last address. For users above level 8 a link beside it reads Failed logins today when there were any today, and Logins summary otherwise.
- On the same screen, read Active and User Level.
- On the login form, type the user and password and click into the Campaign field. A wrong pair turns the list into one line: "-- ERROR Invalid Username or Password --".
- Compare the capitals of what the agent types with User Number on the record.
Fix
- Wrong password: type a new Password on the user screen and submit.
- Locked: submit the user screen. Saving the user sets the failed login count to 0, and the agent can try again at once. Left alone, the lock ends 15 minutes after the last login date on record.
- Switched off or level 0: set Active to Y and User Level to 1 or higher, then submit.
- Capitals: the agent types the ID exactly as User Number shows it.
On a Trustane server
Reset password on the console's People page sets a new password and puts the failed login count back to 0 in the same step.
Related messages
- Sorry, you are not allowed to login to this campaign: the user is fine, the user group is not.
- Campaign not active, please try again: the user is fine, the campaign is off.
- Sorry, your phone login and password are not active in this system: the phone step of the same login.
Sources
Every statement above about VICIdial was read from its own source code at the revision given. An installed server can run another revision: compare before you rely on a line number.
- VICIdial svn r4037, www/agc/vicidial.php, lines 1831-1852: the empty-field case, the call to the user check and the test for capitals
- VICIdial svn r4037, www/agc/vicidial.php, lines 4329-4356: this message and the narrower ones printed in its place
- VICIdial svn r4006, www/agc/functions.php, lines 115-136: the 15 minutes, the 10 attempts, the characters removed and the one query a user must pass
- VICIdial svn r4006, www/agc/functions.php, lines 146-178: what a failed attempt writes, and when the answer becomes the lock
- VICIdial svn r4037, www/agc/vdc_db_query.php, lines 1632-1646: the Campaign list running the same check and its error line
- VICIdial svn r4031, www/vicidial/admin.php, lines 27452-27510: the user screen: User Number, Password, Last Login Info, User Level, Active
- VICIdial svn r4031, www/vicidial/admin.php, lines 18694-18737: saving a user sets the failed login count to 0
- VICIdial svn r4038, www/vicidial/help_documentation.txt, lines 3-11: the help for Password, Last Login Info, User Level and Active
- Trustane console: Reset password writes the new password and clears the failed login count