Skip to content

Commit 1266477

Browse files
committed
controller modifications
modifications of sigin controller
1 parent 2be9ec3 commit 1266477

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: Zenergy/Zenergy/Scripts/Controllers/registerPageController.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
zenergyApp.controller("registrationPageController", ["$scope", "$http", "$httpParamSerializerJQLike", "tokenService", "$window", function ($scope, $http, $httpParamSerializerJQLike, tokenService, $window) {
1+
zenergyApp.controller("registerPageController", ["$scope", "$http", "$httpParamSerializerJQLike", "tokenService", "$window", function ($scope, $http, $httpParamSerializerJQLike, tokenService, $window) {
22

3-
$scope.user = { mail: '', password: '' };
3+
$scope.user = { mail: '', password: '', passwordBis: '', firstName :'', lastName:'', adr1:'', adr2:'', pc:'', town:'', phone:''};
44
$scope.hasError = false;
5-
$scope.connexion = function () {
5+
$scope.signIn = function () {
66
var response = $http({
7-
url: 'api/login',
7+
url: 'api/Account/register',
88
method: 'POST',
99
data: $httpParamSerializerJQLike({ grant_type: 'password', username: $scope.user.mail, password: $scope.user.password }),
1010
//data: $httpParamSerializerJQLike({ grant_type: 'password', username: $scope.user.mail, password: CryptoJS.MD5($scope.user.password).toString() }),

0 commit comments

Comments
 (0)