Skip to content

Commit 9a691f0

Browse files
author
Sameer Dhar
committed
added signup controller support for buttons
1 parent a408f58 commit 9a691f0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

app/templates/client/app/account(auth)/signup/signup.controller(coffee).coffee

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ angular.module('<%= scriptAppName %>').controller 'SignupCtrl', ($scope, Auth, $
2222
# Update validity of form fields that match the mongoose errors
2323
angular.forEach err.errors, (error, field) ->
2424
form[field].$setValidity 'mongoose', false
25-
$scope.errors[field] = error.message
25+
$scope.errors[field] = error.message
26+
27+
$scope.loginOauth = (provider) ->
28+
$window.location.href = '/auth/' + provider

app/templates/client/app/account(auth)/signup/signup.controller(js).js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ angular.module('<%= scriptAppName %>')
3030
});
3131
}
3232
};
33-
});
33+
34+
$scope.loginOauth = function(provider) {
35+
$window.location.href = '/auth/' + provider;
36+
};
37+
});

0 commit comments

Comments
 (0)