summaryrefslogtreecommitdiffstats
path: root/core/src/components
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2021-06-17 08:53:49 -0700
committerGitHub <noreply@github.com>2021-06-17 08:53:49 -0700
commit18ff2612a1a7908b613490a38b6d49ee2dc18a19 (patch)
treea51e6e9a692fffe140c56900c825a6eacd1807ba /core/src/components
parentae331deed558d9b73c6981e4aba567a49303e9c0 (diff)
parent86080e68b2a23b0759d81509c3bf47ad254f5ce7 (diff)
downloadnextcloud-server-18ff2612a1a7908b613490a38b6d49ee2dc18a19.tar.gz
nextcloud-server-18ff2612a1a7908b613490a38b6d49ee2dc18a19.zip
Merge pull request #27537 from nextcloud/fix/noid/webauthn-localhost
Allow WebAuthn on localhost as well
Diffstat (limited to 'core/src/components')
-rw-r--r--core/src/components/login/PasswordLessLoginForm.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/src/components/login/PasswordLessLoginForm.vue b/core/src/components/login/PasswordLessLoginForm.vue
index df774599f92..0203bd74c48 100644
--- a/core/src/components/login/PasswordLessLoginForm.vue
+++ b/core/src/components/login/PasswordLessLoginForm.vue
@@ -1,5 +1,5 @@
<template>
- <form v-if="isHttps && hasPublicKeyCredential"
+ <form v-if="(isHttps || isLocalhost) && hasPublicKeyCredential"
ref="loginForm"
method="post"
name="login"
@@ -32,7 +32,7 @@
<div v-else-if="!hasPublicKeyCredential">
{{ t('core', 'Passwordless authentication is not supported in your browser.') }}
</div>
- <div v-else-if="!isHttps">
+ <div v-else-if="!isHttps && !isLocalhost">
{{ t('core', 'Passwordless authentication is only available over a secure connection.') }}
</div>
</template>
@@ -73,6 +73,10 @@ export default {
type: Boolean,
default: false,
},
+ isLocalhost: {
+ type: Boolean,
+ default: false,
+ },
hasPublicKeyCredential: {
type: Boolean,
default: false,