Compare commits

...

13 Commits

Author SHA1 Message Date
Karson a5a0a30d07
!452 模型已做清除缓存,去除多余代码
Merge pull request !452 from 御宅男(YznCMS官方)/N/A
2024-11-18 09:16:05 +00:00
Karson 142ed14afa
!476 require.js 原型污染安全修复
Merge pull request !476 from 御宅男(YznCMS官方)/1.x
2024-11-18 08:04:58 +00:00
Karson cfd8a6a295
!475 会员登录次数无效,旧的冗余代码删除
Merge pull request !475 from 御宅男(YznCMS官方)/1.x
2024-11-18 08:03:49 +00:00
御宅男(YznCMS官方) 04af4aa1c0
Revert "update application/common/view/tpl/dispatch_jump.tpl."
Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>
2024-10-29 07:03:25 +00:00
御宅男(YznCMS官方) d6635c1cd6
update application/common/view/tpl/dispatch_jump.tpl.
Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>
2024-10-29 05:37:27 +00:00
ken678 3e6ffdf276 优化 2024-10-10 10:14:40 +08:00
御宅男(YznCMS官方) 4e28f319b7
update application/admin/command/Min/r.js.
require.js 原型污染安全修复

Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>
2024-10-10 01:44:38 +00:00
御宅男(YznCMS官方) 73686e38c8
update public/assets/js/require.min.js.
require.js 原型污染安全修复

Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>
2024-10-09 09:17:39 +00:00
御宅男(YznCMS官方) 986cc85be3
update public/assets/js/require.js.
require.js 原型污染安全修复

Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>
2024-10-09 09:12:24 +00:00
御宅男(YznCMS官方) f01d11d02b
update application/admin/controller/auth/Adminlog.php.
删除残留的旧的冗余代码

Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>
2024-09-27 05:33:05 +00:00
御宅男(YznCMS官方) a5025fd1b1
update application/index/lang/zh-cn/user.php.
登录次数多语言

Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>
2024-09-19 02:47:53 +00:00
御宅男(YznCMS官方) f57cf5ce80
update application/common/library/Auth.php.
此处没有用return false;
2024-09-19 02:42:28 +00:00
御宅男 611d9d1a2e
模型已做清除缓存,去除多余代码
Signed-off-by: 御宅男 <530765310@qq.com>
2023-08-07 02:51:22 +00:00
8 changed files with 9447 additions and 6975 deletions

File diff suppressed because one or more lines are too long

View File

@ -18,21 +18,13 @@ class Adminlog extends Backend
* @var \app\admin\model\AdminLog
*/
protected $model = null;
protected $childrenGroupIds = [];
protected $childrenAdminIds = [];
public function _initialize()
{
parent::_initialize();
$this->model = model('AdminLog');
$this->childrenAdminIds = $this->auth->getChildrenAdminIds(true);
$this->childrenGroupIds = $this->auth->getChildrenGroupIds(true);
$groupName = AuthGroup::where('id', 'in', $this->childrenGroupIds)
->column('id,name');
$this->view->assign('groupdata', $groupName);
}
/**

View File

@ -82,7 +82,6 @@ class Rule extends Backend
if ($result === false) {
$this->error($this->model->getError());
}
Cache::rm('__menu__');
$this->success();
}
$this->error();
@ -124,7 +123,6 @@ class Rule extends Backend
if ($result === false) {
$this->error($row->getError());
}
Cache::rm('__menu__');
$this->success();
}
$this->error();

View File

@ -224,6 +224,7 @@ class Auth
if ($user->loginfailure >= 10 && time() - $user->loginfailuretime < 86400) {
$this->setError('Please try again after 1 day');
return false;
}
if ($user->password != $this->getEncryptPassword($password, $user->salt)) {

View File

@ -60,4 +60,4 @@
</script>
{/if}
</body>
</html>
</html>

View File

@ -57,11 +57,12 @@ return [
'Change password successful' => '修改密码成功',
'Password and confirm password don\'t match' => '两次输入的密码不一致',
'Captcha is incorrect' => '验证码不正确',
'Please try again after 1 day' => '请于1天后再尝试登录',
'Logged in successful' => '登录成功',
'Logout successful' => '退出成功',
'User center already closed' => '会员中心已经关闭',
'Don\'t have an account? Sign up' => '还没有账号?点击注册',
'Already have an account? Sign in' => '已经有账号?点击登录',
'Already have an account? Sign in' => '已经有账号?点击登录',
'Operation failed' => '操作失败',
'Invalid parameters' => '参数不正确',
'Change password failure' => '修改密码失败',

View File

@ -1,5 +1,5 @@
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.3.2 Copyright jQuery Foundation and other contributors.
* @license RequireJS 2.3.7 Copyright jQuery Foundation and other contributors.
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
*/
//Not using strict: uneven strict support in browsers, #392, and causes
@ -11,7 +11,7 @@ var requirejs, require, define;
(function (global, setTimeout) {
var req, s, head, baseElement, dataMain, src,
interactiveScript, currentlyAddingScript, mainScript, subPath,
version = '2.3.2',
version = '2.3.7',
commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
jsSuffixRegExp = /\.js$/,
@ -33,7 +33,8 @@ var requirejs, require, define;
contexts = {},
cfg = {},
globalDefQueue = [],
useInteractive = false;
useInteractive = false,
disallowedProps = ['__proto__', 'constructor'];
//Could match something like ')//comment', do not lose the prefix to comment.
function commentReplace(match, singlePrefix) {
@ -94,7 +95,7 @@ var requirejs, require, define;
function eachProp(obj, func) {
var prop;
for (prop in obj) {
if (hasProp(obj, prop)) {
if (hasProp(obj, prop) && disallowedProps.indexOf(prop) == -1) {
if (func(obj[prop], prop)) {
break;
}
@ -165,7 +166,7 @@ var requirejs, require, define;
* @returns {Error}
*/
function makeError(id, msg, err, requireModules) {
var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
var e = new Error(msg + '\nhttps://requirejs.org/docs/errors.html#' + id);
e.requireType = id;
e.requireModules = requireModules;
if (err) {
@ -440,7 +441,9 @@ var requirejs, require, define;
//Account for relative paths if there is a base name.
if (name) {
if (prefix) {
if (pluginModule && pluginModule.normalize) {
if (isNormalized) {
normalizedName = name;
} else if (pluginModule && pluginModule.normalize) {
//Plugin is loaded, use its normalize method.
normalizedName = pluginModule.normalize(name, function (name) {
return normalize(name, parentName, applyMap);
@ -972,7 +975,8 @@ var requirejs, require, define;
//prefix and name should already be normalized, no need
//for applying map config again either.
normalizedMap = makeModuleMap(map.prefix + '!' + name,
this.map.parentMap);
this.map.parentMap,
true);
on(normalizedMap,
'defined', bind(this, function (value) {
this.map.normalizedMap = normalizedMap;

File diff suppressed because one or more lines are too long