K356/k356/main/templates/components/Loading/vue.js
2024-09-28 17:37:29 +02:00

27 lines
512 B
JavaScript

Loading = {
template: "#Loading",
router_path: "/",
props: [],
data: function() {
return {
password: '',
}
},
mounted: function() {
// FIX: Remove this, this is the key for debugging
this.generate_aes_key('asd')
},
methods: {
async generate_aes_key (password) {
const key = await this.deriveKeyFromPassphrase(password, "{{ user_setting.id }}--aes")
this.$emit("update_key", key)
},
}
}