CodeIgniter Forums
Myth\Auth - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forum-34.html)
+--- Thread: Myth\Auth (/thread-77539.html)



Myth\Auth - nc03061981 - 09-12-2020

Dear,
I using MythAuth
I do not want use Email
How i config for only use Username, no Email, no Activate by email
Thanks for help


RE: Myth\Auth - InsiteFX - 09-13-2020

Not tested but from the comment in the Config/Auth.php

In Config/Auth.pp add this:

PHP Code:
// Remark this out so that you do not lose it.
// public $requireActivation = 'Myth\Auth\Authentication\Activators\EmailActivator';

// Add this:
public $requireActivation false

I did look at the registration code and that is what tells it not to send and email.

Good Luck.


RE: Myth\Auth - nc03061981 - 09-13-2020

@InsiteFX
Thanks for help
And as your answer, i find
$this->config->requireActivation !== false ? $user->generateActivateHash() : $user->activate();

Thanks thanks


RE: Myth\Auth - InsiteFX - 09-13-2020

Right but if you set the Auth config item to false it should not send the email.


RE: Myth\Auth - nc03061981 - 09-13-2020

(09-13-2020, 12:00 PM)InsiteFX Wrote: Right but if you set the Auth config item to false it should not send the email.

Thanks,