Browse Source

fixed update password

master
arnaucode 7 years ago
parent
commit
419746e54a
4 changed files with 11 additions and 42 deletions
  1. +3
    -3
      www/js/password.js
  2. +0
    -34
      www/js/signup.js
  3. +4
    -4
      www/templates/password.html
  4. +4
    -1
      www/templates/signup.html

+ 3
- 3
www/js/password.js

@ -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);

+ 0
- 34
www/js/signup.js

@ -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);
};
});

+ 4
- 4
www/templates/password.html

@ -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>

+ 4
- 1
www/templates/signup.html

@ -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>

Loading…
Cancel
Save