Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

register error issue myth auth #615

Open
WP2yohanesdopoberu opened this issue Jan 17, 2024 Discussed in #394 · 1 comment
Open

register error issue myth auth #615

WP2yohanesdopoberu opened this issue Jan 17, 2024 Discussed in #394 · 1 comment

Comments

@WP2yohanesdopoberu
Copy link

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants