- When new user was created via admin, the verification email was send

- Item name in list view type is now extended on the full page width
This commit is contained in:
Čarodej
2022-06-01 10:09:18 +02:00
parent 428b4c87a3
commit 94afb626eb
13 changed files with 46 additions and 36 deletions

View File

@@ -43,8 +43,6 @@ class CreateNewUserAction extends Controller
$user->markEmailAsVerified();
}
event(new Registered($user));
return $user;
}

View File

@@ -2,6 +2,7 @@
namespace App\Users\Controllers\Authentication;
use App\Users\DTO\CreateUserData;
use Illuminate\Auth\Events\Registered;
use Illuminate\Http\JsonResponse;
use App\Http\Controllers\Controller;
use App\Users\Actions\CreateNewUserAction;
@@ -45,6 +46,8 @@ class RegisterUserController extends Controller
], 409);
}
event(new Registered($user));
// Log in if verification is disabled
if (! $user->password || ! intval(get_settings('user_verification'))) {
$this->guard->login($user);