Closed (fixed)
Project:
Mail Login
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2023 at 11:21 UTC
Updated:
9 May 2023 at 00:38 UTC
Jump to comment: Most recent
In AuthDecorator we check if the user is blocked, by using the user.module user_is_blocked() method. We can replace it with ->isBlocked() since we are already loading the whole User object.
This is a performance improvement, since user_is_blocked() queries the database and we can get rid of that call by simply using the methods available in the User entity.
Check AuthDecorator, line 79
Replace user_is_blocked with isBlocked() method.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nkoporecComment #5
mqannehComment #6
mqanneh