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, .controller('PasswordCtrl', function($scope, $stateParams, $translate,
$http, $ionicLoading) { $http, $ionicLoading) {
$scope.newPass = {};
$scope.newPassword = {};
$scope.changePassword = function() { $scope.changePassword = function() {
console.log($scope.newPass);
console.log($scope.newPassword);
$http({ $http({
url: urlapi + 'changePassword', url: urlapi + 'changePassword',
method: "PUT", method: "PUT",
data: $scope.newPass
data: $scope.newPassword
}) })
.then(function(data) { .then(function(data) {
console.log(data); console.log(data);

+ 0
- 34
www/js/signup.js

@ -52,40 +52,6 @@ angular.module('app.signup', ['pascalprecht.translate'])
if (obj.email == undefined) { if (obj.email == undefined) {
return (false); return (false);
} }
/*if(obj.avatar==undefined)
{
return(false);
}*/
return (true); 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;"> <input ng-model="newPassword.new2" type="password" placeholder="{{'Repeat_New_Password' | translate}}" style="-webkit-text-security: disc;">
</label> </label>
</div> </div>
<!--<div ng-click="changePassword()" class="button button-block c_deepPurple200">
<div ng-click="changePassword()" class="button button-block c_deepPurple200">
{{'Change_password' | translate}} {{'Change_password' | translate}}
</div>-->
<div class="button button-block c_deepPurple200">
Feature not ready yet
</div> </div>
<!--<div class="button button-block c_deepPurple200">
Feature not ready yet
</div>-->
</ion-content> </ion-content>
</ion-view> </ion-view>

+ 4
- 1
www/templates/signup.html

@ -22,12 +22,15 @@
</label> </label>
<label class="item item-input"> <label class="item item-input">
<span class="input-label">{{'Telegram' | translate}}</span> <span class="input-label">{{'Telegram' | translate}}</span>
<input type="text" ng-model="signupData.telegram">
@<input type="text" ng-model="signupData.telegram">
</label> </label>
<label class="item item-input"> <label class="item item-input">
<span class="input-label">{{'Description' | translate}}*</span> <span class="input-label">{{'Description' | translate}}*</span>
<input type="text" ng-model="signupData.description"> <input type="text" ng-model="signupData.description">
</label> </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> <div>
<a class="button o_purple100" ng-href="#/app/login">{{'Cancel' | translate}}</a> <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> <a class="button o_purple300 o_floatRight" ng-click="doSignup()">{{'Signup' | translate}}</a>

Loading…
Cancel
Save