Refactoring of Github authentication (oauth url change)

This commit is contained in:
Frederic Guillot
2015-07-16 20:35:56 -04:00
parent 12036aa21f
commit ede1f1d9b0
33 changed files with 426 additions and 485 deletions

View File

@@ -18,13 +18,12 @@ class Acl extends Base
*/
private $public_acl = array(
'auth' => array('login', 'check'),
'user' => array('github'),
'task' => array('readonly'),
'board' => array('readonly'),
'webhook' => '*',
'ical' => '*',
'feed' => '*',
'oauth' => array('google'),
'oauth' => array('google', 'github'),
);
/**

View File

@@ -122,13 +122,13 @@ class User extends Base
}
/**
* Get a specific user by the GitHub id
* Get a specific user by the Github id
*
* @access public
* @param string $github_id GitHub user id
* @param string $github_id Github user id
* @return array|boolean
*/
public function getByGitHubId($github_id)
public function getByGithubId($github_id)
{
if (empty($github_id)) {
return false;