示例#1
0
        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 ? "更新成功。" : "更新失败。");
        }
示例#2
0
 public bool UpdateUser(Model.Oauth.Userinfo user)
 {
     return(dal.UpdateUser(user));
 }
示例#3
0
 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);
 }
示例#4
0
 public string ResetPassword(Model.Oauth.Userinfo user)
 {
     return(dal.ResetPassword(user));
 }