Resetting user's password while it's beign blocked causes error:

Warning: Cannot modify header information - headers already sent by (output started at /includes/common.inc:2697) funktiossa drupal_send_headers() (rivi 1216 tiedostossa /includes/bootstrap.inc).

CommentFileSizeAuthor
#1 user-2040691-1.patch650 byteslauriii
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lauriii’s picture

Status: Active » Needs review
FileSize
650 bytes

Here's a patch for this

mgifford’s picture

Title: Resetting user's password while it's beign blocked causes error » Resetting user's password while it's being blocked causes error
Issue summary: View changes

@lauriii does this work in D8?

lauriii’s picture

This does work in Drupal 8

Version: 7.22 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

poker10’s picture

Status: Needs review » Closed (outdated)

This header error was fixed in D7 here: #1426122: Some callbacks return junk when calling drupal_not_found(); replace with return MENU_NOT_FOUND instead. (added drupal_exit()) and the possibility to block users from sending reset password while they are blocked is being backported/discussed here: #753898: Wrong message for blocked users who request password reset.

So I think this can be closed.