Skip to content

Commit fbc1d14

Browse files
committed
fix(passport): change passport
1 parent 7effb7a commit fbc1d14

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

rootfs/web/src/views/AccountSetting.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,16 @@ export default {
133133
const submitPassowrd = () => {
134134
if (currentPassword == newPassword){
135135
Toast.fail("Current Password and New Password are the same.")
136-
} else if( newPassword.length >= 8){
136+
} else if( newPassword.length < 8){
137137
Toast.fail("this New Password is not valid.")
138138
} else if (newPassword != confirmNewPassword){
139139
Toast.fail("New Password Confirm and New Password are different.")
140140
}else {
141141
putAccountPassword({password: currentPassword, new_password: newPassword}).then(res=>{
142-
if (res.status == 204) {
143-
router.push({ path: `/` })
144-
}
145-
})
142+
if (res.status == 204) {
143+
router.push({ path: `/` })
144+
}
145+
})
146146
}
147147
}
148148

0 commit comments

Comments
 (0)