Changeset 916 for trunk/Modules/User


Ignore:
Timestamp:
Dec 7, 2021, 11:08:42 PM (3 years ago)
Author:
chronos
Message:
  • Added: Allow to switch Mail class into test mode.
  • Modified: Type checking related changes.
  • Modified: Replace global $Config references with $this->System->Config is possible.
Location:
trunk/Modules/User
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/User.php

    r914 r916  
    2525  }
    2626
    27   function DoInstall(): void
    28   {
    29   }
    30 
    3127  function DoInsertSampleData(): void
    3228  {
  • trunk/Modules/User/UserModel.php

    r908 r916  
    4545}
    4646
    47 // TODO: Make User class more general without dependencies to System, Mail, Log
     47// TODO: Make User class more general without dependencies on System, Mail, Log
    4848
    4949class User extends Model
     
    418418        $Row['Id'].'&H='.$Row['Password'].'&P='.$NewPassword.'">tento odkaz</a>.'."\n<br />".
    419419        "Po přihlášení si prosím změňte heslo na nové.\n\n<br><br>Na tento email neodpovídejte.", 'text/html');
     420      print_r($Mail);
    420421      $Mail->Send();
    421422
Note: See TracChangeset for help on using the changeset viewer.