summaryrefslogtreecommitdiffstats
path: root/core/src/views
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-06-17 10:01:31 +0200
committerLouis Chemineau <louis@chmn.me>2021-06-17 16:05:45 +0200
commit86080e68b2a23b0759d81509c3bf47ad254f5ce7 (patch)
treec4886a91c932e2228456a2224c250321b49ebd1d /core/src/views
parentff8cfbb24e49540362c9d9683c14daa40d07f495 (diff)
downloadnextcloud-server-86080e68b2a23b0759d81509c3bf47ad254f5ce7.tar.gz
nextcloud-server-86080e68b2a23b0759d81509c3bf47ad254f5ce7.zip
Allow WebAuthn on localhost as well
* browsers typically whiteliste this as well - https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API * for developing purposes see https://developer.chrome.com/docs/devtools/webauthn/ Signed-off-by: Morris Jobke <hey@morrisjobke.de> Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'core/src/views')
-rw-r--r--core/src/views/Login.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/views/Login.vue b/core/src/views/Login.vue
index 90c163fc3d5..1372f40b112 100644
--- a/core/src/views/Login.vue
+++ b/core/src/views/Login.vue
@@ -73,6 +73,7 @@
:inverted-colors="invertedColors"
:auto-complete-allowed="autoCompleteAllowed"
:is-https="isHttps"
+ :is-localhost="isLocalhost"
:has-public-key-credential="hasPublicKeyCredential"
@submit="loading = true" />
<a href="#" @click.prevent="passwordlessLogin = false">
@@ -176,6 +177,10 @@ export default {
type: Boolean,
default: false,
},
+ isLocalhost: {
+ type: Boolean,
+ default: false,
+ },
hasPublicKeyCredential: {
type: Boolean,
default: false,