mirror of https://gitee.com/karson/fastadmin.git
Merge branch '1.x' of gitee.com:karson/fastadmin into 1.x
commit
4b9643e967
File diff suppressed because one or more lines are too long
|
|
@ -18,21 +18,13 @@ class Adminlog extends Backend
|
||||||
* @var \app\admin\model\AdminLog
|
* @var \app\admin\model\AdminLog
|
||||||
*/
|
*/
|
||||||
protected $model = null;
|
protected $model = null;
|
||||||
protected $childrenGroupIds = [];
|
|
||||||
protected $childrenAdminIds = [];
|
protected $childrenAdminIds = [];
|
||||||
|
|
||||||
public function _initialize()
|
public function _initialize()
|
||||||
{
|
{
|
||||||
parent::_initialize();
|
parent::_initialize();
|
||||||
$this->model = model('AdminLog');
|
$this->model = model('AdminLog');
|
||||||
|
|
||||||
$this->childrenAdminIds = $this->auth->getChildrenAdminIds(true);
|
$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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,6 @@ class Rule extends Backend
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
$this->error($this->model->getError());
|
$this->error($this->model->getError());
|
||||||
}
|
}
|
||||||
Cache::rm('__menu__');
|
|
||||||
$this->success();
|
$this->success();
|
||||||
}
|
}
|
||||||
$this->error();
|
$this->error();
|
||||||
|
|
@ -124,7 +123,6 @@ class Rule extends Backend
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
$this->error($row->getError());
|
$this->error($row->getError());
|
||||||
}
|
}
|
||||||
Cache::rm('__menu__');
|
|
||||||
$this->success();
|
$this->success();
|
||||||
}
|
}
|
||||||
$this->error();
|
$this->error();
|
||||||
|
|
|
||||||
|
|
@ -224,6 +224,7 @@ class Auth
|
||||||
|
|
||||||
if ($user->loginfailure >= 10 && time() - $user->loginfailuretime < 86400) {
|
if ($user->loginfailure >= 10 && time() - $user->loginfailuretime < 86400) {
|
||||||
$this->setError('Please try again after 1 day');
|
$this->setError('Please try again after 1 day');
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->password != $this->getEncryptPassword($password, $user->salt)) {
|
if ($user->password != $this->getEncryptPassword($password, $user->salt)) {
|
||||||
|
|
|
||||||
|
|
@ -57,11 +57,12 @@ return [
|
||||||
'Change password successful' => '修改密码成功',
|
'Change password successful' => '修改密码成功',
|
||||||
'Password and confirm password don\'t match' => '两次输入的密码不一致',
|
'Password and confirm password don\'t match' => '两次输入的密码不一致',
|
||||||
'Captcha is incorrect' => '验证码不正确',
|
'Captcha is incorrect' => '验证码不正确',
|
||||||
|
'Please try again after 1 day' => '请于1天后再尝试登录',
|
||||||
'Logged in successful' => '登录成功',
|
'Logged in successful' => '登录成功',
|
||||||
'Logout successful' => '退出成功',
|
'Logout successful' => '退出成功',
|
||||||
'User center already closed' => '会员中心已经关闭',
|
'User center already closed' => '会员中心已经关闭',
|
||||||
'Don\'t have an account? Sign up' => '还没有账号?点击注册',
|
'Don\'t have an account? Sign up' => '还没有账号?点击注册',
|
||||||
'Already have an account? Sign in' => '已经有账号?点击登录',
|
'Already have an account? Sign in' => '已经有账号?点击登录',
|
||||||
'Operation failed' => '操作失败',
|
'Operation failed' => '操作失败',
|
||||||
'Invalid parameters' => '参数不正确',
|
'Invalid parameters' => '参数不正确',
|
||||||
'Change password failure' => '修改密码失败',
|
'Change password failure' => '修改密码失败',
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/** vim: et:ts=4:sw=4:sts=4
|
/** 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
|
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
//Not using strict: uneven strict support in browsers, #392, and causes
|
//Not using strict: uneven strict support in browsers, #392, and causes
|
||||||
|
|
@ -11,7 +11,7 @@ var requirejs, require, define;
|
||||||
(function (global, setTimeout) {
|
(function (global, setTimeout) {
|
||||||
var req, s, head, baseElement, dataMain, src,
|
var req, s, head, baseElement, dataMain, src,
|
||||||
interactiveScript, currentlyAddingScript, mainScript, subPath,
|
interactiveScript, currentlyAddingScript, mainScript, subPath,
|
||||||
version = '2.3.2',
|
version = '2.3.7',
|
||||||
commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
|
commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
|
||||||
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
|
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
|
||||||
jsSuffixRegExp = /\.js$/,
|
jsSuffixRegExp = /\.js$/,
|
||||||
|
|
@ -33,7 +33,8 @@ var requirejs, require, define;
|
||||||
contexts = {},
|
contexts = {},
|
||||||
cfg = {},
|
cfg = {},
|
||||||
globalDefQueue = [],
|
globalDefQueue = [],
|
||||||
useInteractive = false;
|
useInteractive = false,
|
||||||
|
disallowedProps = ['__proto__', 'constructor'];
|
||||||
|
|
||||||
//Could match something like ')//comment', do not lose the prefix to comment.
|
//Could match something like ')//comment', do not lose the prefix to comment.
|
||||||
function commentReplace(match, singlePrefix) {
|
function commentReplace(match, singlePrefix) {
|
||||||
|
|
@ -94,7 +95,7 @@ var requirejs, require, define;
|
||||||
function eachProp(obj, func) {
|
function eachProp(obj, func) {
|
||||||
var prop;
|
var prop;
|
||||||
for (prop in obj) {
|
for (prop in obj) {
|
||||||
if (hasProp(obj, prop)) {
|
if (hasProp(obj, prop) && disallowedProps.indexOf(prop) == -1) {
|
||||||
if (func(obj[prop], prop)) {
|
if (func(obj[prop], prop)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -165,7 +166,7 @@ var requirejs, require, define;
|
||||||
* @returns {Error}
|
* @returns {Error}
|
||||||
*/
|
*/
|
||||||
function makeError(id, msg, err, requireModules) {
|
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.requireType = id;
|
||||||
e.requireModules = requireModules;
|
e.requireModules = requireModules;
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
@ -440,7 +441,9 @@ var requirejs, require, define;
|
||||||
//Account for relative paths if there is a base name.
|
//Account for relative paths if there is a base name.
|
||||||
if (name) {
|
if (name) {
|
||||||
if (prefix) {
|
if (prefix) {
|
||||||
if (pluginModule && pluginModule.normalize) {
|
if (isNormalized) {
|
||||||
|
normalizedName = name;
|
||||||
|
} else if (pluginModule && pluginModule.normalize) {
|
||||||
//Plugin is loaded, use its normalize method.
|
//Plugin is loaded, use its normalize method.
|
||||||
normalizedName = pluginModule.normalize(name, function (name) {
|
normalizedName = pluginModule.normalize(name, function (name) {
|
||||||
return normalize(name, parentName, applyMap);
|
return normalize(name, parentName, applyMap);
|
||||||
|
|
@ -972,7 +975,8 @@ var requirejs, require, define;
|
||||||
//prefix and name should already be normalized, no need
|
//prefix and name should already be normalized, no need
|
||||||
//for applying map config again either.
|
//for applying map config again either.
|
||||||
normalizedMap = makeModuleMap(map.prefix + '!' + name,
|
normalizedMap = makeModuleMap(map.prefix + '!' + name,
|
||||||
this.map.parentMap);
|
this.map.parentMap,
|
||||||
|
true);
|
||||||
on(normalizedMap,
|
on(normalizedMap,
|
||||||
'defined', bind(this, function (value) {
|
'defined', bind(this, function (value) {
|
||||||
this.map.normalizedMap = normalizedMap;
|
this.map.normalizedMap = normalizedMap;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue