osb/spark/resources/assets/js/settings/security/disable-two-factor-auth.js

26 lines
354 B
JavaScript
Raw Normal View History

2017-11-03 05:26:07 +00:00
module.exports = {
props: ['user'],
/**
* The component's data.
*/
data() {
return {
form: new SparkForm({})
}
},
methods: {
/**
* Disable two-factor authentication for the user.
*/
disable() {
Spark.delete('/settings/two-factor-auth', this.form)
.then(() => {
Bus.$emit('updateUser');
});
}
}
};