model.auth.beforeImpersonate

Triggered in October\Rain\Auth\Concerns\HasImpersonation.

Example usage:

$model->bindEvent('model.auth.beforeImpersonate', function (\October\Rain\Database\Model|null $oldUser) use (\October\Rain\Database\Model $model) {
    traceLog($oldUser->full_name . ' is now impersonating ' . $model->full_name);
});