Docker image / push (push) Canceled after 0s
包含:登录失败锁定、90天密码有效期、30分钟会话超时、 强制改密、登录审计日志、屏幕水印、企业背景图、 备案信息固定底部、favicon、登录页JS修复等全部改动
23 lines
382 B
PHP
23 lines
382 B
PHP
<?php
|
|
namespace MRBS\Auth;
|
|
|
|
|
|
class AuthNone extends Auth
|
|
{
|
|
/**
|
|
* Checks if the specified username/password pair are valid.
|
|
*
|
|
* This authentication scheme always validates positively.
|
|
*
|
|
* @return string|null
|
|
*/
|
|
public function validateUser(
|
|
#[\SensitiveParameter]
|
|
?string $user,
|
|
#[\SensitiveParameter]
|
|
?string $pass)
|
|
{
|
|
return $user;
|
|
}
|
|
}
|