|
@@ -1,6 +1,6 @@ |
|
|
export default class Password { |
|
|
export default class Password { |
|
|
constructor(password) { |
|
|
|
|
|
this.password = password; |
|
|
|
|
|
|
|
|
constructor(pwd) { |
|
|
|
|
|
let password = Object.assign({}, pwd); |
|
|
this.options = { |
|
|
this.options = { |
|
|
uppercase: password.uppercase, |
|
|
uppercase: password.uppercase, |
|
|
lowercase: password.lowercase, |
|
|
lowercase: password.lowercase, |
|
@@ -8,7 +8,8 @@ export default class Password { |
|
|
symbols: password.symbols, |
|
|
symbols: password.symbols, |
|
|
length: password.length, |
|
|
length: password.length, |
|
|
counter: password.counter, |
|
|
counter: password.counter, |
|
|
} |
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
this.password = password; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
isNewPassword(passwords) { |
|
|
isNewPassword(passwords) { |
|
|