lonnieezell / myth-auth

One-stop Auth package for CodeIgniter 4
MIT License
632 stars 207 forks source link

register error issue myth auth #615

Open WP2yohanesdopoberu opened 7 months ago

WP2yohanesdopoberu commented 7 months ago

Class name must be a valid object or a string APPPATH\ThirdParty\myth-auth\src\Config\Services.php at line 81

74 return self::getSharedInstance('activator', $config); 75 } 76 77 $config ??= config(AuthConfig::class); 78 $class = $config->requireActivation ?? UserActivator::class; 79 80 /* @var class-string $class / 81 return new $class($config); 82 } 83 84 /* 85 Returns an instance of the Resetter. 86 */ 87 public static function resetter(?AuthConfig $config = null, bool $getShared = true): ResetterInterface 88 {

manageruz commented 7 months ago

Hey @WP2yohanesdopoberu It should be config file settings issue. Check your $requireActivation variable. It should be either class name string or null. For example: public $requireActivation = 'Myth\Auth\Authentication\Activators\EmailActivator';

or: public $requireActivation = null; And don't forget update to the latest dev version of myth auth.