注册功能及页面,将配置是否注册部分注释放开

This commit is contained in:
donqi 2023-07-01 19:36:34 +08:00
parent 9cd69109f9
commit 49ca78bdf3
2 changed files with 5 additions and 6 deletions

View File

@ -39,10 +39,10 @@ public class SysRegisterController extends BaseController
@ResponseBody
public AjaxResult ajaxRegister(@Valid SysUserAddDTO userAddDTO)
{
// if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser"))))
// {
// return error("当前系统没有开启注册功能!");
// }
if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser"))))
{
return error("当前系统没有开启注册功能!");
}
String msg = registerService.register(userAddDTO);
return StringUtils.isEmpty(msg) ? success() : error(msg);
}

View File

@ -36,8 +36,7 @@
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 在你需要的时候</li>
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 总在您身边</li>
</ul>
<!-- <strong th:if="${isAllowRegister}">还没有账号? <a th:href="@{/register}">立即注册&raquo;</a></strong>-->
<strong>还没有账号? <a th:href="@{/register}">立即注册&raquo;</a></strong>
<strong th:if="${isAllowRegister}">还没有账号? <a th:href="@{/register}">立即注册&raquo;</a></strong>
</div>
</div>
<div class="col-sm-5">