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

            Assignee:
            jackermann Jakob Ackermann
            Reporter:
            jackermann Jakob Ackermann
            Peer reviewer:
            cameron1729
            Integrator:
            Dan Poltawski
            Tester:
            Rajesh Taneja
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              5/Dec/16

                Time Tracking

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