HowTo: Reset failed login count from Confluence database
Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.
You're seeing CAPTCHA on every Confluence login attempt (due to the number of failed login attempts) and do not have access to the admin UI to reset the failed login attempts.
Confluence Server and Data Center
We strongly recommend you back up your database before you begin.
- Shut down Confluence.
- Clear all cookies from your browser and close all browsers.
Run the following query to see the current number of failed login attempts for the user name you need to reset (in this example the username is
SELECT TOTALFAILED, CURFAILED FROM LOGININFO WHERE username IN ( SELECT user_key FROM user_mapping WHERE lower_username = 'admin' );
Once you've confirmed that the user name has failed login attempts, run the following update:
UPDATE LOGININFO SET CURFAILED = 0 WHERE username IN ( SELECT user_key FROM user_mapping WHERE lower_username = 'admin' );
If you have multiple users to update, you can use the following query by adding each user to it:
UPDATE LOGININFO SET CURFAILED = 0 WHERE username IN ( SELECT user_key FROM user_mapping WHERE lower_username IN ('username1', 'username2'));
Start Confluence and attempt to log in again.