I would suggest to only decrypt user data in the hook_init implementation for authenticated users since anonymous users shouldn't have any data to decrypt. The comment on the hook_init implementation also says Implements hook_boot().

Comments

badjava created an issue. See original summary.

badjava’s picture

Status: Active » Needs review
StatusFileSize
new674 bytes

Here is the patch.

rlhawk’s picture

Status: Needs review » Reviewed & tested by the community

I applied the patch and it works as intended.

  • rlhawk committed 5054885 on 7.x-1.x authored by badjava
    Issue #2553535 by badjava: Skip user decryption in hook_init for...
rlhawk’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.