Only solution is to fix it in the db
SET DisableDbAuth = 0
WHERE SiteID = 1
or if a multi site installation you need the siteid of the specific site.
After running the query you need to touch your Web.config file so it clears the Site Settings from cache.
Hope it helps,