mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKit.git
synced 2026-01-15 00:35:08 +08:00
fix(account.auth): 修复了 trait 中错误的可访问性
Signed-off-by: 李东云 <dongyun.li@luxcreo.ai>
This commit is contained in:
@@ -21,37 +21,25 @@ trait CannotInvalid
|
||||
{
|
||||
|
||||
/**
|
||||
* 作废此 token
|
||||
*
|
||||
* @param bool $clearAll
|
||||
*
|
||||
* @return bool
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected function invalid(bool $clearAll = false): bool
|
||||
public function invalid(bool $clearAll = false): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据用户作废 token
|
||||
*
|
||||
* @param string $uid
|
||||
*
|
||||
* @return bool
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected function invalidByUser(string $uid): bool
|
||||
public function invalidByUser(string $uid): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 作废此 token
|
||||
*
|
||||
* @param string $token
|
||||
*
|
||||
* @return bool
|
||||
* @inheritDoc
|
||||
*/
|
||||
protected function invalidByToken(string $token): bool
|
||||
public function invalidByToken(string $token): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user