mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature(github) auth -> github
This commit is contained in:
parent
bb14333ab7
commit
c745add934
2 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@
|
|||
* @param callback
|
||||
*/
|
||||
|
||||
module.exports = function(code, callback){
|
||||
exports.auth = function(code, callback){
|
||||
code = code.replace('code=', '');
|
||||
|
||||
Util.log(code);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
markdown = require(DIR + 'rest/markdown'),
|
||||
|
||||
auth = require(DIR + 'auth'),
|
||||
github = require(DIR + 'github'),
|
||||
flop = require(DIR + 'flop'),
|
||||
pack = require(DIR + 'pack'),
|
||||
mellow = require(DIR + 'mellow'),
|
||||
|
|
@ -275,7 +275,7 @@
|
|||
|
||||
switch(cmd) {
|
||||
case 'auth':
|
||||
auth(body, function(error, token) {
|
||||
github.auth(body, function(error, token) {
|
||||
callback(error, Util.stringifyJSON({
|
||||
data: token
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue