diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000000000..a63b2459a93c7 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +#prefix=/home/hubi/.npm-global diff --git a/apps/settings/lib/Controller/WebAuthnController.php b/apps/settings/lib/Controller/WebAuthnController.php index 495b58e6a4bd3..308ba83721957 100644 --- a/apps/settings/lib/Controller/WebAuthnController.php +++ b/apps/settings/lib/Controller/WebAuthnController.php @@ -48,7 +48,8 @@ public function __construct( public function startRegistration(): JSONResponse { $this->logger->debug('Starting WebAuthn registration'); - $credentialOptions = $this->manager->startRegistration($this->userSession->getUser(), $this->request->getServerHost()); + $discoverable = $this->request->getParam('discoverable', '1') !== '0'; + $credentialOptions = $this->manager->startRegistration($this->userSession->getUser(), $this->request->getServerHost(), $discoverable); // Set this in the session since we need it on finish $this->session->set(self::WEBAUTHN_REGISTRATION, $credentialOptions); diff --git a/apps/settings/src/components/WebAuthn/AddDevice.vue b/apps/settings/src/components/WebAuthn/AddDevice.vue index db00bae451a3f..53100d56d8885 100644 --- a/apps/settings/src/components/WebAuthn/AddDevice.vue +++ b/apps/settings/src/components/WebAuthn/AddDevice.vue @@ -8,6 +8,18 @@ {{ t('settings', 'Passwordless authentication requires a secure connection.') }}
+ {{ t('settings', 'Disable this option to use the classic flow that keeps the login name requirement.') }} +
+\n\t\t\t{{ t('settings', 'Set up your account for passwordless authentication following the FIDO2 standard.') }}\n\t\t
\n\t\t\n\t\t\t{{ t('settings', 'Set up your account for passwordless authentication following the FIDO2 standard.') }}\n\t\t
\n\t\t\\n\\t\\t\\t{{ t('settings', 'Set up your account for passwordless authentication following the FIDO2 standard.') }}\\n\\t\\t
\\n\\t\\t\n\t\t\t{{ t('settings', 'Set up your account for passwordless authentication following the FIDO2 standard.') }}\n\t\t
\n\t\t