Commit 803c086e895d694f3d30c5b8f7ac57376748877c

Authored by Jose Pinto
1 parent 1533a3c46e
Exists in master

md5 antes de enviar password

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
src/js/controller.js
1 1 angular.module('focaModalLogin')
2 2 .controller('focaModalLoginController', [
3   - '$uibModalInstance', '$scope', 'parametros', 'focaModalLoginService',
4   - function($uibModalInstance, $scope, parametros, focaModalLoginService) {
  3 + '$uibModalInstance', '$scope', 'parametros', 'focaModalLoginService', 'md5',
  4 + function($uibModalInstance, $scope, parametros, focaModalLoginService, md5) {
5 5 init();
6 6  
7 7 function init() {
... ... @@ -25,7 +25,7 @@ angular.module('focaModalLogin')
25 25 var result = {
26 26 login: {
27 27 username: $scope.usuario.login,
28   - password: $scope.usuario.pass,
  28 + password: md5.createHash($scope.usuario.pass),
29 29 activo: true
30 30 },
31 31 cuenta: {