Skip to content

Commit

Permalink
Merge pull request #696 from faircopy/logout-fix
Browse files Browse the repository at this point in the history
Fix logout
  • Loading branch information
devsnd authored Oct 10, 2017
2 parents 494a066 + 3215d99 commit c606cdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cherrymusicserver/httphandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,9 @@ def api_showplaylists(self, sortby="created", filterby=''):
return playlists

def api_logout(self):
cherrypy.lib.sessions.expire()
cherrypy.session['username'] = None
cherrypy.session['userid'] = None
cherrypy.session['admin'] = None
api_logout.no_auth = True

def api_downloadpls(self, plid, hostaddr):
Expand Down

0 comments on commit c606cdd

Please sign in to comment.