完善配置

This commit is contained in:
Wisp X
2022-02-14 14:04:19 +08:00
parent 11857bbe9d
commit 0e996b579d
19 changed files with 97 additions and 18 deletions
@@ -2,9 +2,11 @@
namespace App\Http\Controllers\Auth;
use App\Enums\ConfigKey;
use App\Http\Controllers\Controller;
use App\Models\User;
use App\Providers\RouteServiceProvider;
use App\Utils;
use Illuminate\Auth\Events\Registered;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
@@ -13,6 +15,13 @@ use Illuminate\Validation\Rules;
class RegisteredUserController extends Controller
{
public function __construct()
{
if (! Utils::config(ConfigKey::IsEnableRegistration)) {
abort(404);
}
}
/**
* Display the registration view.
*