mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 05:09:48 +08:00
merge method updateuser if and fix bug#2892
fix [BUG] When editing user information, clear the phone number, the database table t_ds_user.phone is not cleared #2892
This commit is contained in:
parent
4441d91dcf
commit
3e7dc7da8d
@ -306,13 +306,11 @@ public class UsersService extends BaseService {
|
||||
user.setEmail(email);
|
||||
}
|
||||
|
||||
if (StringUtils.isNotEmpty(phone)) {
|
||||
if (!CheckUtils.checkPhone(phone)){
|
||||
putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR,phone);
|
||||
return result;
|
||||
}
|
||||
user.setPhone(phone);
|
||||
if (StringUtils.isNotEmpty(phone) && !CheckUtils.checkPhone(phone)) {
|
||||
putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR,phone);
|
||||
return result;
|
||||
}
|
||||
user.setPhone(phone);
|
||||
user.setQueue(queue);
|
||||
Date now = new Date();
|
||||
user.setUpdateTime(now);
|
||||
|
Loading…
Reference in New Issue
Block a user