|
@@ -107,11 +107,11 @@ public class AdSyncServiceImpl implements IAdSyncService {
|
|
|
user.setUserName(info.getSamAccountName());
|
|
|
user.setNickName(info.getDisplayName());
|
|
|
user.setEmail(info.getLogonName());
|
|
|
- if (info.getMobile().length() < 11) {
|
|
|
+ if (info.getMobile().length() > 11) {
|
|
|
+ user.setPassword(SecurityUtils.encryptPassword("123456"));
|
|
|
+ } else {
|
|
|
user.setPhonenumber(info.getMobile());
|
|
|
user.setPassword(SecurityUtils.encryptPassword(info.getMobile()));
|
|
|
- } else {
|
|
|
- user.setPassword(SecurityUtils.encryptPassword("123456"));
|
|
|
}
|
|
|
Set<Long> roles = new HashSet<>();
|
|
|
roles.add(commonRole.getRoleId());
|