This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
site-base/spark/resources/assets/js/settings/security.js
2017-11-03 16:26:07 +11:00

28 lines
475 B
JavaScript
Vendored

module.exports = {
props: ['user'],
/**
* The component's data.
*/
data() {
return {
twoFactorResetCode: null
};
},
/**
* The component has been created by Vue.
*/
created() {
var self = this;
this.$on('receivedTwoFactorResetCode', function (code) {
self.twoFactorResetCode = code;
$('#modal-show-two-factor-reset-code').modal('show');
});
}
};