404labfr / 404labfr/laravel-impersonate

Seeing 403's after basic Laravel 9 install

未關閉
#170 4 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
PHP
星號
2.3k
分支
235
PR 合併指標
30 天內沒有已合併 PR

描述

Using Laravel 9.34.0 and stock `session` auth driver.

Installed the package:
```
"lab404/laravel-impersonate": "^1.7",
```

Added `Impersonate` trait to `app\User.php`:
```
use HasFactory, Notifiable, Impersonate;
```

Added the route helper at the top of `routes/web.php`:
```
Route::impersonate();
```

Navigating to `/impersonate/take/2` displays the "403 | Forbidden" error page.
Navigating to `/` shows I am impersonating user `2` as expected.
Navigating to `/impersonate/leave` again displays the "403 | Forbidden" error page.
Navigating to `/` shows I am logged in as the original user again.

Any idea why the impersonate routes are not redirecting and instead returning a 403?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。