-
-
@@ -326,13 +326,15 @@ export default {
this.userPass.user_old_pass !== this.userPass.user_new_pass
) {
this.$axios
- .post(
- `/trending/api/Members/ResetNewPassword/?Password=${this.user_new_pass}`
- )
- .then((res) => {
- //console.log(JSON.stringify(res));
- //this.$auth.$storage.removeUniversal("jwt");
- this.$auth.$storage.removeUniversal("userPicture");
+ .post(
+ `/trending/api/Members/ResetNewPassword/?Password=${this.userPass.user_new_pass}`
+ )
+ .then((response) => {
+ //(JSON.stringify(response));
+ if(response && response.data && response.data.DATA && response.data.DATA.rel){
+ let data = response.data.DATA.rel
+ if(data){
+ this.$auth.$storage.removeUniversal("userPicture");
this.$auth.$storage.removeUniversal("userLastName");
this.$notify({
type: "success",
@@ -343,12 +345,19 @@ export default {
this.$auth.logout();
this.$router.push(this.localePath("/user"));
}, 4000)
+ }
+ }
})
- .catch((err) => {
- console.log(err);
+ .catch((error) => {
+ console.log(error);
});
}
},
+ cancel(){
+ this.userPass.user_old_pass = "",
+ this.userPass.user_new_pass = "",
+ this.confirmPass = ""
+ },
checkPassword(v) {
const pass = v.target.value;
this.isNewPassValid =