26 lines
354 B
JavaScript
Vendored
26 lines
354 B
JavaScript
Vendored
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');
|
|
});
|
|
}
|
|
}
|
|
};
|