[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [FIX] Remove accidental WebAuthn code pollution in user registration
"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <69f3120e4bc24_3828edad0253b9@gitlab-sidekiq-low-urgency-cpu-bound-v2-5599fc94bd-6pchf.mail> |
luci pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki
Commits:
a767b5e4 by Moïse Nturubika at 2026-04-30T08:18:48+00:00
[FIX] Remove accidental WebAuthn code pollution in user registration
---
* [FIX] templates: Remove accidental WebAuthn code pollution in user registration
See merge request tikiwiki/tiki!10111
- - - - -
1 changed file:
- templates/user_registration.tpl
Changes:
=====================================
templates/user_registration.tpl
=====================================
@@ -33,45 +33,6 @@
{tr _0="$sender_email"}If you use an email filter, be sure to add %0 to your accepted list{/tr}
{/remarksbox}
</div>
- {jq}
- $('form[name="RegForm"]').on("submit", async function (event) {
- event.preventDefault();
- var isWebauthnEnabled = "{{$prefs.auth_webauthn_enabled}}";
- var isWebAuthnIsChoosen = $("#webauthn_checkbox_register").is(':checked') && isWebauthnEnabled === 'y';
- var regUser = $(this).find('#name').val();
- if (isWebAuthnIsChoosen) {
- try {
- if (!window.PublicKeyCredential) {
- throw new Error(tr("Your browser does not support password less login feature."));
- }
- if (!window.isSecureContext) {
- throw new Error(tr("Passkey feature requires a secure (HTTPS) connection. Please ensure you are using a secure website."));
- }
- const result = await $.fn.registerWebAuth.createCredentials(event, regUser);
- if (result && result.code === 'AUTHENTICATOR_EXIST') {
- $("#tikifeedback").html(
- `<div class="alert alert-danger alert-dismissible">
- ${result.message}
- <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
- </div>`
- );
- return;
- }
- this.submit();
- } catch (error) {
- $("#tikifeedback").html(
- `<div class="alert alert-danger alert-dismissible">
- ${error}
- <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
- </div>`
- );
- return;
- }
- } else {
- this.submit();
- }
- });
- {/jq}
{/if}
{else}
{include file='modules/mod-login_box.tpl' nobox='y'}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a767b5e44a11c5c55f2928c47944754b9cbdb09e
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a767b5e44a11c5c55f2928c47944754b9cbdb09e
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs