Site admin may want to show no message but still let the redirection rule to act. It might be better to avoid strict check

  if(($login_redirect) && !empty($login_message)){
    // Set Login redirect message.
    drupal_set_message(t($login_message));
    user_default_page_redirect($login_redirect);
  }

And let it work with empty login_message.

Comments

arpitr created an issue. See original summary.

Ashok Negi’s picture

StatusFileSize
new596 bytes

Attached Patch for the issue.

saradaprasad17’s picture

Fixed. Without Message allowing redirecting to landing page .

saradaprasad17’s picture

StatusFileSize
new531 bytes
saradaprasad17’s picture

Status: Active » Needs review
saradaprasad17’s picture

heykarthikwithu’s picture

Assigned: arpitr » Unassigned
Status: Needs review » Reviewed & tested by the community

heykarthikwithu’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

rolodmonkey’s picture

Hiding patch number 4, since it is not the one that was applied.