fixed update password

This commit is contained in:
arnaucode
2017-09-03 17:03:38 +02:00
parent fd2067bd2d
commit 419746e54a
4 changed files with 11 additions and 42 deletions

View File

@@ -2,13 +2,13 @@ angular.module('app.password', ['pascalprecht.translate'])
.controller('PasswordCtrl', function($scope, $stateParams, $translate,
$http, $ionicLoading) {
$scope.newPass = {};
$scope.newPassword = {};
$scope.changePassword = function() {
console.log($scope.newPass);
console.log($scope.newPassword);
$http({
url: urlapi + 'changePassword',
method: "PUT",
data: $scope.newPass
data: $scope.newPassword
})
.then(function(data) {
console.log(data);

View File

@@ -52,40 +52,6 @@ angular.module('app.signup', ['pascalprecht.translate'])
if (obj.email == undefined) {
return (false);
}
/*if(obj.avatar==undefined)
{
return(false);
}*/
return (true);
};
$scope.avatars = [
"turtle",
"cat",
"toucan",
"racoon",
"tiger",
"squirrel",
"sheep",
"penguin",
"panda",
"owl",
"pelican",
"whale",
"snake",
"mouse",
"giraffe",
"macaw",
"lion",
"llama",
"kangaroo",
"hen",
"frog",
"clown-fish",
"chameleon",
"octopus"
];
$scope.avatarSelect = function(avat) {
$scope.signupData.avatar = avat;
//alert($scope.signupData.avatar);
};
});