Skip to content

Commit feb0794

Browse files
committed
proxy.js
1 parent 9c81b18 commit feb0794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let proxy = new Proxy(target, {
1515
},
1616
set (obj, prop, val){
1717
if(prop === 'password'){
18-
if(prop.length<8){
18+
if(val.length<8){
1919
throw new TypeError('The length of password should be greater than 8');
2020
} else {
2121
obj[prop] = val;

0 commit comments

Comments
 (0)