The Church of Latter Day Saints has strict laws on chastity, and the church believes that homosexuality is in violation of those laws. They believe that homosexuality is a distortion of loving, family relationships, making it a serious sin. They also believe that homosexuality prevents people from receiving the blessings of family life. However, the LDS church does not limit the sin to homosexual behavior. They encourage members struggling with same-sex attraction to resist temptation by praying and seeking help to overcome their homosexuality.
They do believe that homosexuals can repent for their sins, but discourage members from committing the sin of homosexuality thinking that they can just ask for forgiveness later.