public string ResetPassword(Model.Oauth.Userinfo user) { sql = " update oauth.UserPassword set Password=@Password where UserID=@UserID;"; var param = new DynamicParameters(); param.Add("@UserID", user.UserId, DbType.Int32); param.Add("@Password", user.Password.GetMD5(), DbType.String); var flag = new MySqlHelper().ExcuteNonQuery(sql, param); return(flag > 0 ? "更新成功。" : "更新失败。"); }
public bool UpdateUser(Model.Oauth.Userinfo user) { return(dal.UpdateUser(user)); }
public bool UpdateUser(Model.Oauth.Userinfo user) { sql = $"update oauth.userinfo set LoginName='{user.LoginName}',PhoneNumber='{user.PhoneNumber}',Status={user.Status},LogoImageUrl='{user.LogoImageUrl}',DepId={user.DepId},UserEmail='{user.UserEmail}',UserName='******' where UserId={user.UserId}"; return(new MySqlHelper().ExcuteNonQuery(sql) > 0); }
public string ResetPassword(Model.Oauth.Userinfo user) { return(dal.ResetPassword(user)); }