fix bug in auth

This commit is contained in:
decoder 2024-03-19 11:00:29 +05:00
parent cf7c57228a
commit d8a271adb4
2 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,11 @@ use ZipArchive;
class FormController extends Controller
{
public function __construct() {
$this->middleware('auth');
}
/**
* Display a listing of the resource.
*

View File

@ -42,7 +42,7 @@ Route::middleware(['IsInstalled'])->group(function () {
Route::post('registration', [RegistrationController::class, 'store']);
});
Route::middleware(['locale', 'IsInstalled', 'auth', 'bootstrap', 'setDefaultConfig'])->group(function () {
Route::middleware(['IsInstalled', 'auth', 'bootstrap', 'setDefaultConfig', 'locale',])->group(function () {
Route::get('/home', [HomeController::class, 'index'])->name('home');
Route::get('/home-template', [HomeController::class, 'getTemplate']);
Route::get('/home-assigned-forms', [HomeController::class, 'getAssignedForms']);