DONE: fix error where the verification uses localhost after user register, use malay name in membership application (#16)
Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local> Reviewed-on: #16
This commit was merged in pull request #16.
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
namespace Modules\Auth\Providers;
|
||||
|
||||
use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -24,4 +26,13 @@ class EventServiceProvider extends ServiceProvider
|
||||
* Configure the proper event listeners for email verification.
|
||||
*/
|
||||
protected function configureEmailVerification(): void {}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
// Framework auto-registers SendEmailVerificationNotification on Registered.
|
||||
// Verification is user-initiated via the email verification banner instead.
|
||||
$this->app->booted(function () {
|
||||
Event::forget(Registered::class);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user