Skip to content

Commit 2bb033a

Browse files
authored
Accept underscore characters in personal access tokens (#492)
1 parent d67a2e8 commit 2bb033a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/LoginWithToken.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const validate = (values: IValues): IFormErrors => {
2323
const errors: IFormErrors = {};
2424
if (!values.token) {
2525
errors.token = 'Required';
26-
} else if (!/^[A-Z0-9]{40}$/i.test(values.token)) {
26+
} else if (!/^[A-Z0-9_]{40}$/i.test(values.token)) {
2727
errors.token = 'Invalid token.';
2828
}
2929

0 commit comments

Comments
 (0)