Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-300

shib users always have email notices turned off

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • web gui (frontend)
    • None

    Description

      The login code for shib users always forces their email notices value to be set to 0, regardless of what the user selects. VCL should not be arbitrarily overriding a user's preferences. Here's a fix:

      — web/.ht-inc/authmethods/shibauth.php (revision 903001)
      +++ web/.ht-inc/authmethods/shibauth.php (working copy)
      @@ -90,8 +90,7 @@
      $email = mysql_escape_string($user['email']);
      $query .= "email = '$email', ";
      }

      • $query .= "emailnotices = 0, "
      • . "lastupdated = NOW() "
        + $query .= "lastupdated = NOW() "
        . "WHERE uid = {$user['id']}";
        doQuery($query, 101, 'vcl', 1);
        return $user;

      Attachments

        Activity

          People

            jfthomps Josh Thompson
            sean@duke.edu Sean Dilda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: