Skip to content

Commit

Permalink
fix: allow usernames login username or password to be shorter than 4 …
Browse files Browse the repository at this point in the history
…characters (#325)

Co-authored-by: Viktor Varland <[email protected]>
  • Loading branch information
amcgee and varl committed Mar 21, 2020
1 parent b4b8810 commit 625dbfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/src/AuthBoundary/LoginModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const LoginModal = () => {
const [password, setPassword] = useState('')
const [isDirty, setIsDirty] = useState(false)

const isValid = val => val && val.length > 3
const isValid = val => val && val.length >= 2

const onSubmit = async e => {
e.preventDefault()
Expand Down

0 comments on commit 625dbfa

Please sign in to comment.