Commit 6cfb0274 authored by Robert Lyon's avatar Robert Lyon

Bug 1577251: Delete password requests when changing primary email

behatnotneeded

Change-Id: I63080b651e08e8e747a891e9f7f2283bfecb72f1
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 4e75d877
......@@ -388,6 +388,7 @@ function profileform_submit(Pieform $form, $values) {
'id' => $USER->get('id'),
)
);
delete_records('usr_password_request', 'usr', $USER->get('id'));
$USER->email = $values['email']['default'];
$USER->commit();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment