Login used GET, should be POST

parent 6bcb88f8
......@@ -28,8 +28,12 @@ var archivingPortalClient = angular.module('archivingPortalClient',
/**
* Set the API host ip.
*/
// Deployed development
archivingPortalClient.constant('portalApiUrl', 'http://archivingportal.nsd.uib.no:8080/');
// Local development
//archivingPortalClient.constant('portalApiUrl', 'http://localhost:8080/');
/**
* Define all routes, partials and controllers in the application.
* Every new "place" has to be added here for Angular to pick up on it.
......
......@@ -11,6 +11,7 @@ loginService.factory('LoginService', function ($resource, $http, portalApiUrl) {
return $resource(portalApiUrl+'oauth/token', {}, {
save: {
method: 'POST',
params:{
password:'@password',
username:'@username',
......
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