Commits

Anonymous committed 6e296cc

delete acct fix

Comments (0)

Files changed (1)

newsmeme/views/account.py

 
     if form.validate_on_submit():
 
-        session.pop('user_id')
-        
         db.session.delete(g.user)
         db.session.commit()
+    
+        identity_changed.send(current_app._get_current_object(),
+                              identity=AnonymousIdentity())
 
         flash(_("Your account has been deleted"), "success")