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,
|
.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);
|
||||||
|
|||||||
@@ -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);
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user