mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Gitea API wants tokens, not HTTP basic auth (#4854)
This commit is contained in:
parent
af82a95a29
commit
31c9c23a18
@ -31,7 +31,7 @@ GiteaSaver.prototype.save = function(text,method,callback) {
|
|||||||
headers = {
|
headers = {
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
"Content-Type": "application/json;charset=UTF-8",
|
"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
|
// Bail if we don't have everything we need
|
||||||
if(!username || !password || !repo || !filename) {
|
if(!username || !password || !repo || !filename) {
|
||||||
|
Loading…
Reference in New Issue
Block a user