Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2209 from vhpoet/develop
Browse files Browse the repository at this point in the history
[FIX] Auth: Remove device id
  • Loading branch information
yongsoo committed Feb 13, 2015
2 parents 99cd50c + 6184579 commit f9b44f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/services/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,15 +527,15 @@ module.factory('rpId', ['$rootScope', '$location', '$route', '$routeParams', '$t
callback();
});
};

Id.prototype.logout = function ()
{

// remove deviceID if remember me is not set
if (!store.get('remember_me')) {
if (!store.get('remember_me') && store.get('ripple_auth')) {
var auth = store.get('ripple_auth');
this.removeDeviceID(auth.username);
}

store.remove('ripple_auth');

// TODO make it better
Expand Down

0 comments on commit f9b44f2

Please sign in to comment.