Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-53306

Add hook to be executed before user login in authentication plugins.

    XMLWordPrintable

Details

    Description

      I would like to be able to revive suspended user inside my auth plugin. Right now there is no way for me to do so.

       
      /**
      * If a user account is suspended check if we need to revive the account.
      * @param $user
      * @return boolean
      */
      public function revive_suspended_user($user) {
       
          if($this->user_exists($user->username) === true) {
              return true;
          }
       
          return false;
       
      }
      

      Attachments

        Activity

          People

            jackermann Jakob Ackermann
            jackermann Jakob Ackermann
            cameron1729 cameron1729
            Dan Poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5/Dec/16

              Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified