Gitea API wants tokens, not HTTP basic auth (#4854)

This commit is contained in:
Robin Munn 2020-09-14 19:14:10 +07:00 committed by GitHub
parent af82a95a29
commit 31c9c23a18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ GiteaSaver.prototype.save = function(text,method,callback) {
headers = {
"Accept": "application/json",
"Content-Type": "application/json;charset=UTF-8",
"Authorization": "Basic " + window.btoa(username + ":" + password)
"Authorization": "token " + password
};
// Bail if we don't have everything we need
if(!username || !password || !repo || !filename) {