Add login with GitHub to the landing page.
This commit is contained in:
parent
5b25d8db5b
commit
669b3fcde1
4 changed files with 39 additions and 5 deletions
|
@ -130,7 +130,7 @@ function RepoListCtrl($scope, Restangular, UserService) {
|
|||
});
|
||||
}
|
||||
|
||||
function LandingCtrl($scope, $timeout, Restangular, UserService) {
|
||||
function LandingCtrl($scope, $timeout, Restangular, UserService, KeyService) {
|
||||
$('.form-signup').popover();
|
||||
|
||||
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
|
||||
|
@ -141,6 +141,8 @@ function LandingCtrl($scope, $timeout, Restangular, UserService) {
|
|||
$scope.user = currentUser;
|
||||
}, true);
|
||||
|
||||
$scope.githubClientId = KeyService.githubClientId;
|
||||
|
||||
$scope.awaitingConfirmation = false;
|
||||
$scope.registering = false;
|
||||
|
||||
|
|
Reference in a new issue