Commit 02894d54 authored by Evren Kutar's avatar Evren Kutar

auth url and data format changed

parent 3b3f211e
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
var auth = angular.module('ulakbus.auth', ['ngRoute', 'schemaForm', 'ngCookies', 'general']); var auth = angular.module('ulakbus.auth', ['ngRoute', 'schemaForm', 'ngCookies', 'general']);
auth.controller('LoginCtrl', function ($scope, $q, $timeout, $routeParams, Generator, LoginService) { auth.controller('LoginCtrl', function ($scope, $q, $timeout, $routeParams, Generator, LoginService) {
$scope.url = 'simple_login'; $scope.url = 'login';
$scope.form_params = {}; $scope.form_params = {};
$scope.form_params['clear_wf'] = 1; $scope.form_params['clear_wf'] = 1;
// todo: change simple login when api ready // todo: change simple login when api ready
......
...@@ -13,7 +13,7 @@ auth.factory('LoginService', function ($http, $rootScope, $location, $log, $cook ...@@ -13,7 +13,7 @@ auth.factory('LoginService', function ($http, $rootScope, $location, $log, $cook
var loginService = {}; var loginService = {};
loginService.login = function (url, credentials) { loginService.login = function (url, credentials) {
credentials = {login_crd: credentials, cmd: "do"}; credentials['cmd'] = "do";
return $http return $http
.post(RESTURL.url + url, credentials) .post(RESTURL.url + url, credentials)
.success(function (data, status, headers, config) { .success(function (data, status, headers, config) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment