From 8671b897d01b98c8119dceaf4fa67085096dfd51 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 12 May 2013 20:08:01 -0500 Subject: [PATCH] logout after delete user from profile --- VERSION | 2 +- gluon/tools.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index fde42951..4b150ea3 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/tools.py b/gluon/tools.py index c716dd44..cdfdeddf 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -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: