remove check for password in git sync (#5655)

Co-authored-by: Patrick Murrell <pmurrell@lcs.com>
This commit is contained in:
PatrickMurrellandPatrick Murrell authored and GitHub committed 2023-01-12 11:57:14 +00:00
1 parent c4d2939e7a
commit ffd847f1df
1 file changed
+1 -3
@@ -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,
};
}