~craftyguy/ridecasa

4ed35984e56e7dd94e2ab6b1d893915673cb35a9 — Clayton Craft 2 years ago 31be327
settings/general: set user.enabled to false when scheduling deletion
1 files changed, 4 insertions(+), 0 deletions(-)

M ridecasa/settings/views.py
M ridecasa/settings/views.py => ridecasa/settings/views.py +4 -0
@@ 128,6 128,10 @@ def general():

        # schedule task to delete user later
        delete_user(current_user.id)
        # mark user as not enabled, since delete may not be instant
        user = db.User.get(id=current_user.id)
        user.enabled = False

        logout_user()
        return redirect('/login')
    return render_template('settings/general.html', form=form,