angular-django-registration-auth icon indicating copy to clipboard operation
angular-django-registration-auth copied to clipboard

ngCookies - Cookie Methods Different for Angular 1.4 +

Open mmansour opened this issue 8 years ago • 2 comments

Hi -

Thanks for open sourcing this time saver.

I noticed the cookie methods in djangoAuth.js need to be updated for later versions of angular

delete $cookies.token; changes to: $cookies.remove('token');

$cookies.token changes to: $cookies.get('token')

$cookies.token = data.key; changes to: $cookies.put("token", data.key);

Not sure if the this project is still active but thought I'd make a note here if someone wants to try this with a newer version of angular.

mmansour avatar Apr 07 '16 21:04 mmansour

You're right. I've already proposed that. Can someone update the code ?

adimux avatar Apr 07 '16 21:04 adimux

+1 had same problem. Can't easily make PR because of other code changes intermingled and didn't fork ;|

molecular avatar May 02 '16 13:05 molecular