mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
21e5dae514
commit
ef1bc4133c
1 changed files with 6 additions and 5 deletions
|
|
@ -69,13 +69,14 @@ var CloudCommander, Util, DOM, $, Github;
|
|||
if ( Util.isContainStr(lCode, '?code=') ){
|
||||
lCode = lCode.replace('?code=','');
|
||||
|
||||
|
||||
$.ajax(
|
||||
{type:'put',
|
||||
$.ajax({
|
||||
type:'put',
|
||||
url:'/api/v1/auth',
|
||||
data: lCode,
|
||||
success: function(pDate){
|
||||
console.log(pDate);}
|
||||
success: function(pData){
|
||||
if(pData)
|
||||
GithubStore.Login(pData.token);
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue