|
@@ -96,6 +96,9 @@ public class PhoneAuthenticationProvider extends AbstractAuthenticationProvider
|
|
|
if (user == null) {
|
|
|
throw new LockedException("用户不存在");
|
|
|
}
|
|
|
+ if (isRegister == true) {
|
|
|
+ throw new LockedException("用户已存在,请登录");
|
|
|
+ }
|
|
|
if (StringUtils.isNotBlank(deviceNum) && !StringUtils.equals("STUDENT", clientId)) {
|
|
|
// 检查设备
|
|
|
try {
|