• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Myth\Auth

#1
Lightbulb 
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
Love CI & Thanks CI Teams
Reply

#2
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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

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

Thanks thanks
Love CI & Thanks CI Teams
Reply

#4
Right but if you set the Auth config item to false it should not send the email.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#5
(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,
Love CI & Thanks CI Teams
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.