Fix authentication state persistence and admin role display

- Implement complete authentication system with JWT token validation
- Add auth provider with persistent login state across page refreshes
- Create multilingual login/register forms with Material-UI components
- Fix token validation using raw SQL queries to bypass Prisma sync issues
- Add comprehensive error handling for expired/invalid tokens
- Create profile and settings pages with full i18n support
- Add proper user role management (admin/user) with database sync
- Implement secure middleware with CSRF protection and auth checks
- Add debug endpoints for troubleshooting authentication issues
- Fix Zustand store persistence for authentication state

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
andupetcu
2025-09-21 01:06:30 +03:00
parent cd1793b4a5
commit ad28ae4174
263 changed files with 502172 additions and 179 deletions

View File

@@ -0,0 +1,125 @@
{
"chapterNum": 18,
"verses": [
{
"verseNum": 1,
"text": "Then the LORD said to Moses,"
},
{
"verseNum": 2,
"text": "“Speak to the Israelites and tell them: I am the LORD your God."
},
{
"verseNum": 3,
"text": "You must not follow the practices of the land of Egypt, where you used to live, and you must not follow the practices of the land of Canaan, into which I am bringing you. You must not walk in their customs."
},
{
"verseNum": 4,
"text": "You are to practice My judgments and keep My statutes by walking in them. I am the LORD your God."
},
{
"verseNum": 5,
"text": "Keep My statutes and My judgments, for the man who does these things will live by them. I am the LORD."
},
{
"verseNum": 6,
"text": "None of you are to approach any close relative to have sexual relations. I am the LORD."
},
{
"verseNum": 7,
"text": "You must not expose the nakedness of your father by having sexual relations with your mother. She is your mother; you must not have sexual relations with her."
},
{
"verseNum": 8,
"text": "You must not have sexual relations with your fathers wife; it would dishonor your father."
},
{
"verseNum": 9,
"text": "You must not have sexual relations with your sister, either your fathers daughter or your mothers daughter, whether she was born in the same home or elsewhere."
},
{
"verseNum": 10,
"text": "You must not have sexual relations with your sons daughter or your daughters daughter, for that would shame your family."
},
{
"verseNum": 11,
"text": "You must not have sexual relations with the daughter of your fathers wife, born to your father; she is your sister."
},
{
"verseNum": 12,
"text": "You must not have sexual relations with your fathers sister; she is your fathers close relative."
},
{
"verseNum": 13,
"text": "You must not have sexual relations with your mothers sister, for she is your mothers close relative."
},
{
"verseNum": 14,
"text": "You must not dishonor your fathers brother by approaching his wife to have sexual relations with her; she is your aunt."
},
{
"verseNum": 15,
"text": "You must not have sexual relations with your daughter-in-law. She is your sons wife; you are not to have sexual relations with her."
},
{
"verseNum": 16,
"text": "You must not have sexual relations with your brothers wife; that would shame your brother."
},
{
"verseNum": 17,
"text": "You must not have sexual relations with both a woman and her daughter. You are not to marry her sons daughter or her daughters daughter and have sexual relations with her. They are close relatives; it is depraved."
},
{
"verseNum": 18,
"text": "You must not take your wifes sister as a rival wife and have sexual relations with her while your wife is still alive."
},
{
"verseNum": 19,
"text": "You must not approach a woman to have sexual relations with her during her menstrual period."
},
{
"verseNum": 20,
"text": "You must not lie carnally with your neighbors wife and thus defile yourself with her."
},
{
"verseNum": 21,
"text": "You must not give any of your children to be sacrificed to Molech, for you must not profane the name of your God. I am the LORD."
},
{
"verseNum": 22,
"text": "You must not lie with a man as with a woman; that is an abomination."
},
{
"verseNum": 23,
"text": "You must not lie carnally with any animal, thus defiling yourself with it; a woman must not stand before an animal to mate with it; that is a perversion."
},
{
"verseNum": 24,
"text": "Do not defile yourselves by any of these practices, for by all these things the nations I am driving out before you have defiled themselves."
},
{
"verseNum": 25,
"text": "Even the land has become defiled, so I am punishing it for its sin, and the land will vomit out its inhabitants."
},
{
"verseNum": 26,
"text": "But you are to keep My statutes and ordinances, and you must not commit any of these abominations—neither your native-born nor the foreigner who lives among you."
},
{
"verseNum": 27,
"text": "For the men who were in the land before you committed all these abominations, and the land has become defiled."
},
{
"verseNum": 28,
"text": "So if you defile the land, it will vomit you out as it spewed out the nations before you."
},
{
"verseNum": 29,
"text": "Therefore anyone who commits any of these abominations must be cut off from among his people."
},
{
"verseNum": 30,
"text": "You must keep My charge not to practice any of the abominable customs that were practiced before you, so that you do not defile yourselves by them. I am the LORD your God.”"
}
]
}