1. Dan Jacob
  2. newsmeme

Commits

danjac  committed 6e296cc

delete acct fix

  • Participants
  • Parent commits 5f12d5d
  • Branches default

Comments (0)

Files changed (1)

File newsmeme/views/account.py

View file
  • Ignore whitespace
 
     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")