Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 542db140 authored by Akhil's avatar Akhil 🙂
Browse files

fix: also fix length check at pwdv1challenge class

parent cdae6aef
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -12,8 +12,8 @@ export default class PWDv1Challenge extends BasePWDv1Challenge {
	}

	_validatePasswordLength() {
		if (this._password.length < 8) throw new Error('Password is too short')
		if (this._password.length > 128) throw new Error('Password is too long')
		if (this._password.length < 12) throw new Error('Password is too small.')
		if (this._password.length > 128) throw new Error('Password is too large.')
	}

	solve() {