Skip to content

Commit

Permalink
change some rules
Browse files Browse the repository at this point in the history
  • Loading branch information
moathosas committed Apr 12, 2021
1 parent 74d76c5 commit ad9300a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
padding: .5rem;
border: solid #ccc;
border-width: 0 2px;
font-size: .8rem;
font-size: .7rem;
height: 1.5rem;
font-weight: bold;
text-align: center;
Expand Down
8 changes: 4 additions & 4 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function App() {
if (countConditions.length === 0) {
return notify("select at least one conditions", true);
}
if (passwordLength < 4) {
return notify("password length can't be less than 4", true);
if (passwordLength < 8) {
return notify("password length can't be less than 8", true);
}
if (passwordLength > 20) {
return notify("password length can't be more than 20", true);
Expand All @@ -47,7 +47,7 @@ function App() {
};
const decrease = () => {
setPasswordLength(passwordLength - 1);
if (passwordLength === 4) {
if (passwordLength === 8) {
setPasswordLength(passwordLength);
}
};
Expand Down Expand Up @@ -129,7 +129,7 @@ function App() {
id="password-strength"
name="password-strength"
max="20"
min="4"
min="8"
/>
<button onClick={increase} class="plus"></button>
</div>
Expand Down

0 comments on commit ad9300a

Please sign in to comment.