Skip to content

Commit c560ee4

Browse files
committed
Fixes #938
1 parent 8642a46 commit c560ee4

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

account-gui/src/locale/nl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ const nl = {
438438
}
439439
},
440440
captcha: {
441-
proveNotRobot: "Check de 'I am human' checkbox"
441+
proveNotRobot: "Check de 'Anti-robotverificatie' checkbox"
442442
}
443443
};
444444
export default nl;

account-gui/src/routes/Request.svelte

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,15 @@
3535
Cookies.remove(cookieNames.USERNAME);
3636
if ($conf.captchaEnabled) {
3737
const mount = document.querySelector("#captcha");
38-
mount.addEventListener("frc:widget.complete", function(event) {
39-
captchaShowWarning = false;
40-
});
38+
mount.addEventListener("frc:widget.complete", () => captchaShowWarning = false);
4139
4240
const sdk = new FriendlyCaptchaSDK();
41+
const language = I18n.currentLocale();
4342
sdk.createWidget({
4443
element: mount,
4544
sitekey: $conf.captchaSiteKey,
4645
startMode: "auto",
47-
language: I18n.locale,
46+
language: language,
4847
});
4948
}
5049
@@ -323,7 +322,7 @@
323322
{#if !initial && !agreedWithTerms}
324323
<span class="error">{I18n.t("login.termsRequired")}</span>
325324
{/if}
326-
<div id="captcha"></div>
325+
<div id="captcha" class="frc-captcha"></div>
327326
{#if captchaShowWarning}
328327
<span class="captcha error">{I18n.t("captcha.proveNotRobot")}</span>
329328
{/if}

0 commit comments

Comments
 (0)