mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
fix: 添加密码账号长度限制
This commit is contained in:
parent
6f1a0d90b0
commit
11e30d5860
@ -61,10 +61,9 @@ class UsersController extends AbstractController
|
||||
$email = trim(Request::input('email'));
|
||||
$password = trim(Request::input('password'));
|
||||
$isRegVerify = Base::settingFind('emailSetting', 'reg_verify') === 'open';
|
||||
|
||||
if ($type == 'reg') {
|
||||
if( mb_strlen($email) > 32 || mb_strlen($password) > 32){
|
||||
return Base::retError('账号密码最多可输入32位数字');
|
||||
return Base::retError('账号密码最多可输入32位字符');
|
||||
}
|
||||
$setting = Base::setting('system');
|
||||
if ($setting['reg'] == 'close') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user