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/update-password.js
2017-11-03 16:26:07 +11:00

25 lines
445 B
JavaScript
Vendored

module.exports = {
/**
* The component's data.
*/
data() {
return {
form: new SparkForm({
current_password: '',
password: '',
password_confirmation: ''
})
};
},
methods: {
/**
* Update the user's password.
*/
update() {
Spark.put('/settings/password', this.form);
}
}
};