We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7effb7a commit fbc1d14Copy full SHA for fbc1d14
1 file changed
rootfs/web/src/views/AccountSetting.js
@@ -133,16 +133,16 @@ export default {
133
const submitPassowrd = () => {
134
if (currentPassword == newPassword){
135
Toast.fail("Current Password and New Password are the same.")
136
- } else if( newPassword.length >= 8){
+ } else if( newPassword.length < 8){
137
Toast.fail("this New Password is not valid.")
138
} else if (newPassword != confirmNewPassword){
139
Toast.fail("New Password Confirm and New Password are different.")
140
}else {
141
putAccountPassword({password: currentPassword, new_password: newPassword}).then(res=>{
142
- if (res.status == 204) {
143
- router.push({ path: `/` })
144
- }
145
- })
+ if (res.status == 204) {
+ router.push({ path: `/` })
+ }
+ })
146
}
147
148
0 commit comments