src/SSCMS.Web/wwwroot/sitefiles/assets/js/admin/settings/usersConfig.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var $url = '/settings/usersConfig';
var data = utils.init({
isSmsEnabled: false,
form: {
isUserRegistrationAllowed: null,
isUserRegistrationChecked: null,
isUserUnRegistrationAllowed: null,
isUserForceVerifyMobile: null,
userPasswordMinLength: null,
userPasswordRestriction: null,
userRegistrationMinMinutes: null,
isUserLockLogin: null,
userLockLoginCount: null,
userLockLoginType: null,
userLockLoginHours: null,
userFindPasswordSmsTplId: null
}
});
var methods = {
apiGet: function () {
var $this = this;
utils.loading(this, true);
$api.get($url).then(function (response) {
var res = response.data;
$this.isSmsEnabled = res.isSmsEnabled;
$this.form.isUserRegistrationAllowed = res.config.isUserRegistrationAllowed;
$this.form.isUserRegistrationChecked = res.config.isUserRegistrationChecked;
$this.form.isUserUnRegistrationAllowed = res.config.isUserUnRegistrationAllowed;
$this.form.isUserForceVerifyMobile = res.config.isUserForceVerifyMobile && res.isSmsEnabled;
$this.form.userPasswordMinLength = res.config.userPasswordMinLength;
$this.form.userPasswordRestriction = res.config.userPasswordRestriction;
$this.form.userRegistrationMinMinutes = res.config.userRegistrationMinMinutes;
$this.form.isUserLockLogin = res.config.isUserLockLogin;
$this.form.userLockLoginCount = res.config.userLockLoginCount;
$this.form.userLockLoginType = res.config.userLockLoginType;
$this.form.userLockLoginHours = res.config.userLockLoginHours;
$this.form.userFindPasswordSmsTplId = res.config.userFindPasswordSmsTplId;
}).catch(function (error) {
utils.error(error);
}).then(function () {
utils.loading($this, false);
});
},
apiSubmit: function () {
var $this = this;
utils.loading(this, true);
$api.post($url, {
isUserRegistrationAllowed: this.form.isUserRegistrationAllowed,
isUserRegistrationChecked: this.form.isUserRegistrationChecked,
isUserUnRegistrationAllowed: this.form.isUserUnRegistrationAllowed,
isUserForceVerifyMobile: this.form.isUserForceVerifyMobile,
userPasswordMinLength: this.form.userPasswordMinLength,
userPasswordRestriction: this.form.userPasswordRestriction,
userRegistrationMinMinutes: this.form.userRegistrationMinMinutes,
后面还有 46 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
