From 5d6228aba2d09a7390d122390a98adcd8e6a40c0 Mon Sep 17 00:00:00 2001 From: dibakor Date: Mon, 6 Jul 2026 18:20:41 +0600 Subject: [PATCH] change password length in change password method --- .../Services/Systems/UserService.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Api/OnlineSalesAutoCrop.CoreAPI.Services/Services/Systems/UserService.cs b/Api/OnlineSalesAutoCrop.CoreAPI.Services/Services/Systems/UserService.cs index e850d91..d6c860d 100644 --- a/Api/OnlineSalesAutoCrop.CoreAPI.Services/Services/Systems/UserService.cs +++ b/Api/OnlineSalesAutoCrop.CoreAPI.Services/Services/Systems/UserService.cs @@ -6,7 +6,6 @@ using Microsoft.Extensions.Options; using OnlineSalesAutoCrop.CoreAPI.Models; using OnlineSalesAutoCrop.CoreAPI.Models.Global; using OnlineSalesAutoCrop.CoreAPI.Models.Objects.Systems; -using OnlineSalesAutoCrop.CoreAPI.Models.Requests.Common; using OnlineSalesAutoCrop.CoreAPI.Models.Requests.Integrations; using OnlineSalesAutoCrop.CoreAPI.Models.Requests.MobileApp; using OnlineSalesAutoCrop.CoreAPI.Models.Requests.Systems; @@ -2592,8 +2591,8 @@ namespace OnlineSalesAutoCrop.CoreAPI.Services.Services.Systems p = [ SqlHelperExtension.CreateInParam(pName: "@UserId", pType: SqlDbType.Int, pValue: user.UserId), - SqlHelperExtension.CreateInParam(pName: "@Password", pType: SqlDbType.VarChar, pValue: newPassword, size: 30), - SqlHelperExtension.CreateInParam(pName: "@LastPassword", pType: SqlDbType.VarChar, pValue: password, size: 20), + SqlHelperExtension.CreateInParam(pName: "@Password", pType: SqlDbType.NVarChar, pValue: newPassword, size: 50), + SqlHelperExtension.CreateInParam(pName: "@LastPassword", pType: SqlDbType.NVarChar, pValue: password, size: 50), SqlHelperExtension.CreateInParam(pName: "@LastPasswordChnageDate", pType: SqlDbType.DateTime, pValue: DateTime.Now) ];