mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
empty strength bar for empty password field
This commit is contained in:
parent
f6b25fd8f2
commit
48920f8b9d
@ -43,7 +43,7 @@ export default {
|
||||
* @return {Number} Password Strength Score
|
||||
*/
|
||||
passwordStrength() {
|
||||
const score = !isEmpty(this.pass) ? zxcvbn(this.pass).score : 0
|
||||
const score = !isEmpty(this.pass) ? zxcvbn(this.pass).score : 'empty'
|
||||
if (score !== this.lastScore) {
|
||||
this.lastScore = score
|
||||
this.$emit('change', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user