Permalink
Browse files

MDL-13811 Adding resetting of user preferences when change is success…

…ful.
  • Loading branch information...
1 parent 7b22b8b commit 84e9598a9fea9d9c4f49a5c93c10fb8e50f7b311 nicolasconnault committed Jul 5, 2008
Showing with 7 additions and 0 deletions.
  1. +7 −0 user/emailupdate.php
View
7 user/emailupdate.php
@@ -56,3 +56,10 @@
print_box($strinvalidkey, 'center');
}
+if ($cancel_email_update) {
+ require_once($CFG->dirroot . '/user/editlib.php');
+ $user->preference_newemail = null;
+ $user->preference_newemailkey = null;
+ $user->preference_newemailattemptsleft = null;
+ useredit_update_user_preference($user);
+}

0 comments on commit 84e9598

Please sign in to comment.