model.auth.afterImpersonate

Called after the user in question has stopped being impersonated. Current user is false when either the system or a user from a separate authentication system authorized the impersonation.

Example usage:

$model->bindEvent('model.auth.afterImpersonate', function (\Winter\Storm\Auth\Models\User|false $impersonator) use (\Winter\Storm\Auth\Models\User $model) { \Log::info($impersonator->full_name . ' has stopped impersonating ' . $model->full_name); });

Usage

Triggers

Class or file Line
Winter\Storm\Auth\Manager 827
Copyright © 2024 Winter CMS