logout after delete user from profile

This commit is contained in:
mdipierro
2013-05-12 20:08:01 -05:00
parent 1a3361a1bb
commit 8671b897d0
2 changed files with 4 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.4.6-stable+timestamp.2013.05.12.10.26.52
Version 2.4.6-stable+timestamp.2013.05.12.20.06.49

View File

@@ -926,7 +926,7 @@ class Auth(object):
register_button='Register',
password_reset_button='Request reset password',
password_change_button='Change password',
profile_save_button='Save profile',
profile_save_button='Apply changes',
submit_button='Submit',
verify_password='Verify Password',
delete_label='Check to delete',
@@ -2874,6 +2874,8 @@ class Auth(object):
session.flash = self.messages.profile_updated
self.log_event(log, self.user)
callback(onaccept, form)
if form.deleted:
return self.logout()
if not next:
next = self.url(args=request.args)
else: