Unable to get to the admin panel
I have found the solution. After searching the whole of the WordPress database, I got the “divine” inspiration to check out the .htaccess file. The custom-login script had modified the file. I just removed the line RewriteRule ^.*wp-admin/?|^.*wp-login\.php /not_found [R,L] and everything started working again.