class AuthenticateSession extends AuthenticateSession

User Session Auth Validation If User Password Changed, Other User In Session are logout 注意项目 :

  1. 用户登录成功之后需要触发重新计算 password_hash, 如果不清空则二次登录的时候会自动再次退出一次
  2. 此中间件需要放置在 auth:xx 之后

Properties

protected Factory|SessionGuard $auth

Methods

handle($request, Closure $next)

No description

static string
hashKey(string $login_key)

Password hash key

static string
hashGuard(string $guard)

Guard 名称

storePasswordHashInSession($request)

No description

logout($request)

No description

Details

at line 33
handle($request, Closure $next)

No description

Parameters

$request
Closure $next

Exceptions

AuthenticationException

at line 76
static string hashKey(string $login_key)

Password hash key

Parameters

string $login_key

login key

Return Value

string

at line 87
static string hashGuard(string $guard)

Guard 名称

Parameters

string $guard GuardName

Return Value

string

at line 95
protected storePasswordHashInSession($request)

No description

Parameters

$request

at line 111
protected logout($request)

No description

Parameters

$request