From ede6803dac0f77cc9f9843d67370843fc73b7da1 Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 12 Sep 2018 17:17:33 +0530 Subject: [PATCH] password mismatch issue --- 400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs b/400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs index 6417794..1cc00dc 100644 --- a/400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs +++ b/400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs @@ -844,7 +844,8 @@ namespace AIAHTML5.API.Models try { - if ((string.Equals(username.ToUpper(), user.LoginId.ToUpper())) && (string.Equals(password, user.Password))) + // if ((string.Equals(username.ToUpper(), user.LoginId.ToUpper())) && (string.Equals(password, user.Password))) + if (username.ToUpper().Trim().Equals(user.LoginId.ToUpper().Trim()) && (password.Trim().Equals(user.Password.Trim()))) { result = true; } -- libgit2 0.21.4