Browse Source

pc新增用户时设置默认的头像

develop
胡超1 2 years ago
parent
commit
a317430f0b
  1. 1
      24Hour/Controllers/system/SystemControllerController.cs

1
24Hour/Controllers/system/SystemControllerController.cs

@ -188,6 +188,7 @@ namespace _24Hour.Controllers.system
UserDate.createuserId = _userdata.Id.ToString();
UserDate.createusername = _userdata.name;
UserDate.usertype = 0;
UserDate.photo = "/CaseFile/resource/headicon.png";
//默认密码
UserDate.Password = string.IsNullOrEmpty(UserDate.Password) ? Elight.Utility.Encrypt.Md5.Encrypt32($"mr123456").ToLower() : Elight.Utility.Encrypt.Md5.Encrypt32(UserDate.Password).ToLower();
var roledata = new App_Sys_RoleUserModel();

Loading…
Cancel
Save