Better 2fa handling

This commit is contained in:
James Cole
2017-02-17 20:15:17 +01:00
parent 48c26c5837
commit f7642beb7c
6 changed files with 27 additions and 34 deletions

View File

@@ -19,7 +19,6 @@ use FireflyIII\Repositories\User\UserRepositoryInterface;
use Illuminate\Mail\Message;
use Log;
use Mail;
use Session;
use Swift_TransportException;
/**
@@ -54,20 +53,6 @@ class UserEventHandler
return true;
}
/**
* Handle user logout events.
*
* @return bool
*/
public function logoutUser(): bool
{
// dump stuff from the session:
Session::forget('twoFactorAuthenticated');
Session::forget('twoFactorAuthenticatedDate');
return true;
}
/**
* @param RequestedNewPassword $event
*