public function onStopImpersonating()
    {
        if (!Auth::isImpersonator()) {
            return $this->onLogout();
        }

        Auth::stopImpersonate();

        $url = post('redirect', Request::fullUrl());

        Flash::success(Lang::get('rainlab.user::lang.session.stop_impersonate_success'));

        return Redirect::to($url);
    }
public function onStopImpersonating()
    {
        if (!Auth::isImpersonator()) {
            return $this->onLogout();
        }

        Auth::stopImpersonate();

        $url = post('redirect', Request::fullUrl());

        Flash::success(Lang::get('rainlab.user::lang.session.stop_impersonate_success'));

        return Redirect::to($url);
    }
public function onStopImpersonating ( ) { if ( ! Auth :: isImpersonator ( ) ) { return $ this -> onLogout ( ) ; } Auth :: stopImpersonate ( ) ; $ url = post ( 'redirect' , Request :: fullUrl ( ) ) ; Flash :: success ( Lang :: get ( 'rainlab.user::lang.session.stop_impersonate_success' ) ) ; return Redirect :: to ( $ url ) ; }
If impersonating, revert back to the previously signed in user.
@return Redirect
If impersonating revert back to the previously signed in user .