Commit dba824573c5bc5dce4aeb142fd0f82387cc64f9b
1 parent
9423c2c3
Exists in
master
and in
6 other branches
Fix: update 'get' response params. Small improvements on UI.
Showing
2 changed files
with
8 additions
and
3 deletions
Show diff stats
src/app/pages/auth/auth.controller.js
| ... | ... | @@ -266,8 +266,8 @@ |
| 266 | 266 | vm.resendConfirmationSuccess = true; |
| 267 | 267 | |
| 268 | 268 | // Feedback para usuário já ativo na plataforma |
| 269 | - var user = response.data[0]; | |
| 270 | - if ( user && (user.active === true) ) { | |
| 269 | + var user = response.data.users[0]; | |
| 270 | + if ( user && (user.activated === true) ) { | |
| 271 | 271 | vm.resendConfirmationSuccessTitle = 'Usuário já está ativo!'; |
| 272 | 272 | vm.resendConfirmationSuccessMessage = 'O e-mail informado já foi confirmado.'; |
| 273 | 273 | }else{ | ... | ... |
src/app/pages/auth/resend-confirmation.html
| ... | ... | @@ -24,7 +24,12 @@ |
| 24 | 24 | ></show-message> |
| 25 | 25 | <div class="row"> |
| 26 | 26 | <div class="col-sm-8 col-sm-offset-4"> |
| 27 | - <p><a ui-sref="inicio">Ir para página inicial</a></p> | |
| 27 | + <p> | |
| 28 | + Ir para: | |
| 29 | + <a ui-sref="inicio" class="btn btn-default">Página inicial</a> | |
| 30 | + ou | |
| 31 | + <a ui-sref="entrar" class="btn btn-primary">Entrar</a> | |
| 32 | + </p> | |
| 28 | 33 | </div> |
| 29 | 34 | </div> |
| 30 | 35 | </div> | ... | ... |