Skip to content

Commit

Permalink
Accept underscore characters in personal access tokens (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbarry authored Apr 6, 2021
1 parent d67a2e8 commit 2bb033a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/LoginWithToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const validate = (values: IValues): IFormErrors => {
const errors: IFormErrors = {};
if (!values.token) {
errors.token = 'Required';
} else if (!/^[A-Z0-9]{40}$/i.test(values.token)) {
} else if (!/^[A-Z0-9_]{40}$/i.test(values.token)) {
errors.token = 'Invalid token.';
}

Expand Down

0 comments on commit 2bb033a

Please sign in to comment.