post new offering travel, and user page

This commit is contained in:
arnaucode
2017-01-26 14:13:32 +01:00
parent 5f16f060c1
commit 17f0f740d8
15 changed files with 177 additions and 104 deletions

View File

@@ -6,7 +6,7 @@ angular.module('app.signup', ['pascalprecht.translate'])
console.log('Doing signup', $scope.signupData);
if ($scope.emptyParams($scope.signupData)) {
$http({
url: urlapi + 'users',
url: urlapi + 'signup',
method: "POST",
data: $scope.signupData
})
@@ -49,7 +49,7 @@ angular.module('app.signup', ['pascalprecht.translate'])
if (obj.password == undefined) {
return (false);
}
if (obj.mail == undefined) {
if (obj.email == undefined) {
return (false);
}
/*if(obj.avatar==undefined)