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

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

XMLWordPrintable

      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;
       
      }
      

            jackermann Jakob Ackermann
            jackermann Jakob Ackermann
            cameron1729 cameron1729
            Dan Poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.