def update_user_email(user, new_email):
 validate_email_unique(new_email)
 validate_email(new_email)
 user.email = new_email
 user.save()

def update_user_email ( user , new_email ) : validate_email_unique ( new_email ) validate_email ( new_email ) user . email = new_email user . save ( )
adds/updates sailthru when a user email address is changed args: username: a string representation of user identifier old_email: original email address returns: none .