mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-06 19:16:45 +01:00
fixed update password
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
});
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
<input ng-model="newPassword.new2" type="password" placeholder="{{'Repeat_New_Password' | translate}}" style="-webkit-text-security: disc;">
|
||||
</label>
|
||||
</div>
|
||||
<!--<div ng-click="changePassword()" class="button button-block c_deepPurple200">
|
||||
<div ng-click="changePassword()" class="button button-block c_deepPurple200">
|
||||
{{'Change_password' | translate}}
|
||||
</div>-->
|
||||
<div class="button button-block c_deepPurple200">
|
||||
Feature not ready yet
|
||||
</div>
|
||||
<!--<div class="button button-block c_deepPurple200">
|
||||
Feature not ready yet
|
||||
</div>-->
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
||||
@@ -22,12 +22,15 @@
|
||||
</label>
|
||||
<label class="item item-input">
|
||||
<span class="input-label">{{'Telegram' | translate}}</span>
|
||||
<input type="text" ng-model="signupData.telegram">
|
||||
@<input type="text" ng-model="signupData.telegram">
|
||||
</label>
|
||||
<label class="item item-input">
|
||||
<span class="input-label">{{'Description' | translate}}*</span>
|
||||
<input type="text" ng-model="signupData.description">
|
||||
</label>
|
||||
<label class="item item-text-wrap ctext_red400">
|
||||
<b>Telegram</b> nickname and <b>phone</b> will be public for other users.
|
||||
</label>
|
||||
<div>
|
||||
<a class="button o_purple100" ng-href="#/app/login">{{'Cancel' | translate}}</a>
|
||||
<a class="button o_purple300 o_floatRight" ng-click="doSignup()">{{'Signup' | translate}}</a>
|
||||
|
||||
Reference in New Issue
Block a user