skip to Main Content

Bcrypt Verify always returning false – Asp.net

[HttpPost("signUp")] public async Task<ActionResult<Users>> PostUserRegister(Users user) { if (userEmailExists(user.Email)) { return BadRequest(); } string salt = BC.GenerateSalt(12); // hash password user.Password = BC.HashPassword(user.Password, salt); _context.Database.ExecuteSqlRaw("EXECUTE dbo.UserRegister @userName, @firstName, @lastName, @Password, @userEmail, @gender, @dob", new SqlParameter("@userName", user.UserName.ToString()), new SqlParameter("@firstName", user.FirstName.ToString()), new…

VIEW QUESTION
Back To Top
Search