Skip to content

Commit

Permalink
✨ Don't automatically send mails on registration (#3208)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrLevin authored Feb 5, 2025
1 parent e77c65e commit ff90b23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use App\Http\Controllers\Backend\Social\MastodonProfileDetails;
use App\Jobs\SendVerificationEmail;
use Carbon\Carbon;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
Expand Down Expand Up @@ -84,10 +84,10 @@
* @todo rename mapprovider to map_provider
* @mixin Builder
*/
class User extends Authenticatable implements MustVerifyEmail
class User extends Authenticatable
{

use Notifiable, HasApiTokens, HasFactory, HasRoles;
use Notifiable, HasApiTokens, HasFactory, HasRoles, MustVerifyEmail;

protected $fillable = [
'username', 'name', 'avatar', 'email', 'email_verified_at', 'password', 'home_id', 'privacy_ack_at',
Expand Down
4 changes: 1 addition & 3 deletions app/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ class EventServiceProvider extends ServiceProvider
* @var array
*/
protected $listen = [
Registered::class => [
//SendEmailVerificationNotification::class,
],
Registered::class => [],
UserCheckedIn::class => [
StatusCreateWebhookListener::class,
StatusCreateCheckPolylineListener::class,
Expand Down

0 comments on commit ff90b23

Please sign in to comment.