Example #1
0
        public IActionResult ChangePassword(string indexNumber, string password, ChangePasswordRequests request)
        {
            if (!password.Equals("password"))
            {
                return(Ok(BadRequest("Błędny parametr")));
            }
            var response = _dbService.ChangePassword(indexNumber, request);

            return(response == true?Ok("Password changed") : Ok(BadRequest("Wrong old password")));
        }