Add social auth Github + login page
This commit is contained in:
@@ -35,7 +35,8 @@ const approuter = new Vue({
|
||||
el: "#main",
|
||||
data: {
|
||||
uuid: "{{ user_settings.id }}",
|
||||
ready: null,
|
||||
ready: false,
|
||||
search: '',
|
||||
},
|
||||
|
||||
computed: {
|
||||
@@ -50,8 +51,6 @@ const approuter = new Vue({
|
||||
|
||||
Swal.fire({title: "{{_('The application cannot be launched. Webcrypto is not available.<br><br>Try another browser!') | escapejs}}", icon: "error", showConfirmButton: false})
|
||||
|
||||
this.ready = false
|
||||
|
||||
} else {
|
||||
|
||||
// Try to generate a random keyPair and encrypting stuff before accepting the client
|
||||
@@ -65,8 +64,6 @@ const approuter = new Vue({
|
||||
|
||||
Swal.fire({title: "{{_('An error occured during testing Webcrypto. Please use a compatible browser.') | escapejs}}", icon: "error", showConfirmButton: false})
|
||||
|
||||
this.ready = false
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -99,8 +96,8 @@ const approuter = new Vue({
|
||||
await this.$http.post(
|
||||
Urls["users:keys"](),
|
||||
{
|
||||
privateKey: await this.wrapKey(this.keyPair.privateKey, aes_key, iv_private),
|
||||
publicKey: await this.wrapKey(this.keyPair.publicKey, aes_key, iv_public),
|
||||
privateKey: await this.wrapKey(keyPair.privateKey, aes_key, iv_private),
|
||||
publicKey: await this.wrapKey(keyPair.publicKey, aes_key, iv_public),
|
||||
}
|
||||
)
|
||||
|
||||
@@ -118,6 +115,8 @@ const approuter = new Vue({
|
||||
|
||||
Swal.fire({title: "{{_('Error during unwrapping of private key.<br><br>Maybe your password is wrong?') | escapejs}}", icon: "error", showConfirmButton: false})
|
||||
|
||||
console.error(err)
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{% include "vue/plugins.js" %}
|
||||
|
||||
Vue.config.devtools = true
|
||||
|
||||
Vue.use(VueRouter)
|
||||
Vue.use(Vuex)
|
||||
Vue.use(EncryptionPlugin)
|
||||
|
||||
Vue.config.delimiters = ["[[", "]]"];
|
||||
|
||||
const approuter = new Vue({
|
||||
vuetify: new Vuetify(),
|
||||
el: "#main",
|
||||
data: {
|
||||
dialog: true,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user