-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
Description
Description
When enabling mCaptcha on a site and going to the registration page, the following Javascript error appears
JavaScript promise rejection: r.default is not a function. Open browser console to see more details.
The console points to the following line of code as the problem area:
// @ts-expect-error
mCaptcha.default({
siteKey: {
instanceUrl: new URL(instanceURL),
key: siteKey,
},
});
with the error being caught (in promise) TypeError: r.default is not a function
Relevant part of app.ini here:
ENABLE_CAPTCHA = true
MCAPTCHA_SITEKEY = ***
MCAPTCHA_SECRET = ***
CAPTCHA_TYPE = mcaptcha
MCAPTCHA_URL= https:// ***/widget/?sitekey=***
Gitea Version
1.23.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
Not relevant; issue is in Web UI.
Screenshots
Git Version
git version 2.39.5
Operating System
Debian 6.1.124-1
How are you running Gitea?
Downloading .deb package using apt from https://packaging.gitlab.io/gitea
Database
PostgreSQL
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
wxiaoguang commentedon Feb 20, 2025
-> Fix mCaptcha bug #33659
Fix mCaptcha bug (#33659)
wxiaoguang commentedon Feb 20, 2025
There will be a backport fix for 1.23
Fix mCaptcha bug (go-gitea#33659)
Fix mCaptcha bug (#33659) (#33661)
wxiaoguang commentedon Feb 20, 2025
The 1.23 nightly (which is a stable release and will be 1.23.5) is ready
Sync fork (#61)