Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz-FS committed Feb 21, 2018
1 parent ec4181a commit 7056552
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
17 changes: 2 additions & 15 deletions frontend/auth/loginController.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,6 @@
};

loginCtrl.resetPassword = function resetPassword(ev) {
// var confirm = $mdDialog.prompt()
// .title('Esqueceu sua senha?')
// .textContent('Digite seu email e enviaremos um link para criar uma nova senha.')
// .placeholder('Digite seu email')
// .ariaLabel('Digite seu emai')
// .targetEvent(ev)
// .required(true)
// .ok("Redefinir Senha")
// .cancel("Cancelar");

// $mdDialog.show(confirm).then(function(email) {
// AuthService.resetPassword(email);
// });
$mdDialog.show({
controller: "ResetPasswordController",
controllerAs: "resetCtrl",
Expand Down Expand Up @@ -88,11 +75,11 @@
var resetCtrl = this;

resetCtrl.email = '';
resetCtrl.showNextScreen = false;
resetCtrl.showConfirmedRest = false;

resetCtrl.resetPassword = function resetPassword() {
AuthService.resetPassword(resetCtrl.email);
resetCtrl.showNextScreen = true;
resetCtrl.showConfirmedRest = true;
};

resetCtrl.closeResetDialog = function closeResetDialog() {
Expand Down
4 changes: 2 additions & 2 deletions frontend/auth/reset_password_dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div layout="row" layout-align="center center">
<img src="/app/images/logowithname.png" style="margin-bottom: 20px; width: 70%;"/>
</div>
<div ng-if="!resetCtrl.showNextScreen">
<div ng-if="!resetCtrl.showConfirmedRest">
<form name="resetPassword" ng-submit="resetCtrl.resetPassword()" layout="column">
<b style="margin-bottom: 20px;">Redefinir sua senha</b>
<md-input-container>
Expand All @@ -23,7 +23,7 @@
</div>
</form>
</div>
<div ng-if="resetCtrl.showNextScreen" layout="column">
<div ng-if="resetCtrl.showConfirmedRest" layout="column">
<p>Você receberá dentro de instantes no e-mail {{resetCtrl.email}} um link para redefinição da senha.</p>
<div layout="row" layout-align="end center" style="padding: 0;">
<md-button class="md-raised" ng-click="resetCtrl.closeResetDialog()" md-colors="{background: 'default-teal-500'}">
Expand Down

0 comments on commit 7056552

Please sign in to comment.