用户邮箱长度限制50

dep_wangsr
RuoYi 4 years ago committed by Limy
parent 1100a66558
commit 4e3250bfd3

@ -47,7 +47,7 @@
<label class="col-sm-4 control-label is-required">邮箱:</label>
<div class="col-sm-8">
<div class="input-group">
<input id="email" name="email" class="form-control email" type="text" maxlength="20" placeholder="请输入邮箱" required>
<input id="email" name="email" class="form-control email" type="text" maxlength="50" placeholder="请输入邮箱" required>
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
</div>
</div>

@ -48,7 +48,7 @@
<label class="col-sm-4 control-label is-required">邮箱:</label>
<div class="col-sm-8">
<div class="input-group">
<input name="email" class="form-control email" type="text" maxlength="20" placeholder="请输入邮箱" th:field="*{email}" required>
<input name="email" class="form-control email" type="text" maxlength="50" placeholder="请输入邮箱" th:field="*{email}" required>
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
</div>
</div>

@ -77,7 +77,7 @@
<div class="form-group">
<label class="col-sm-2 control-label">邮箱:</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="email" th:field="*{email}" placeholder="请输入邮箱">
<input type="text" maxlength="50" class="form-control" name="email" th:field="*{email}" placeholder="请输入邮箱">
</div>
</div>
<div class="form-group">

@ -71,6 +71,7 @@ public class SysLoginService
// 查询用户信息
SysUser user = userService.selectUserByLoginName(username);
/**
if (user == null && maybeMobilePhoneNumber(username))
{
user = userService.selectUserByPhoneNumber(username);
@ -80,6 +81,7 @@ public class SysLoginService
{
user = userService.selectUserByEmail(username);
}
*/
if (user == null)
{
@ -106,6 +108,7 @@ public class SysLoginService
return user;
}
/**
private boolean maybeEmail(String username)
{
if (!username.matches(UserConstants.EMAIL_PATTERN))
@ -123,6 +126,7 @@ public class SysLoginService
}
return true;
}
*/
/**
*

Loading…
Cancel
Save