remove check for password in git sync (#5655)

Co-authored-by: Patrick Murrell <pmurrell@lcs.com>
This commit is contained in:
PatrickMurrell 2023-01-12 06:57:14 -05:00 committed by GitHub
parent c4d2939e7a
commit ffd847f1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,15 +434,13 @@ export const updateGitRepoAction: ActionFunction = async ({
oauth2format,
};
} else {
const password = formData.get('password');
invariant(typeof password === 'string', 'Password is required');
const token = formData.get('token');
invariant(typeof token === 'string', 'Token is required');
const username = formData.get('username');
invariant(typeof username === 'string', 'Username is required');
repoSettingsPatch.credentials = {
password,
password: token,
username,
};
}