mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
renamed config options ouath_client_id and oauth_client_secre to github_id and github_secret. Added dropbox_id option.
This commit is contained in:
parent
a6ef735553
commit
72eebd2287
5 changed files with 19 additions and 16 deletions
|
|
@ -8,8 +8,8 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
|
||||
APIURL = '/api/v1',
|
||||
AuthURL = APIURL + '/auth',
|
||||
ClientIdURL = APIURL + '/client_id',
|
||||
CLIENT_ID,
|
||||
GitHubIdURL = APIURL + '/github_id',
|
||||
GitHub_ID,
|
||||
Cache = DOM.Cache,
|
||||
GithubLocal,
|
||||
User,
|
||||
|
|
@ -46,9 +46,9 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
function setConfig(pCallBack){
|
||||
|
||||
DOM.ajax({
|
||||
url : ClientIdURL,
|
||||
url : GitHubIdURL,
|
||||
success : function(pData){
|
||||
CLIENT_ID = pData;
|
||||
GitHub_ID = pData;
|
||||
Util.exec(pCallBack);
|
||||
}
|
||||
});
|
||||
|
|
@ -113,7 +113,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
|
|||
//window.open('welcome.html', 'welcome','width=300,height=200,menubar=yes,status=yes')">
|
||||
window.location =
|
||||
'https://github.com/login/oauth/authorize?client_id=' +
|
||||
CLIENT_ID + '&&scope=repo,user,gist';
|
||||
GitHub_ID + '&&scope=repo,user,gist';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue