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,97 @@
{
"chapterNum": 24,
"verses": [
{
"verseNum": 1,
"text": "Then the LORD said to Moses,"
},
{
"verseNum": 2,
"text": "“Command the Israelites to bring you pure oil of pressed olives for the light, to keep the lamps burning continually."
},
{
"verseNum": 3,
"text": "Outside the veil of the Testimony in the Tent of Meeting, Aaron is to tend the lamps continually before the LORD from evening until morning. This is to be a permanent statute for the generations to come."
},
{
"verseNum": 4,
"text": "He shall tend the lamps on the pure gold lampstand before the LORD continually."
},
{
"verseNum": 5,
"text": "You are also to take fine flour and bake twelve loaves, using two-tenths of an ephah for each loaf,"
},
{
"verseNum": 6,
"text": "and set them in two rows—six per row—on the table of pure gold before the LORD."
},
{
"verseNum": 7,
"text": "And you are to place pure frankincense near each row, so that it may serve as a memorial portion for the bread, an offering made by fire to the LORD."
},
{
"verseNum": 8,
"text": "Every Sabbath day the bread is to be set out before the LORD on behalf of the Israelites as a permanent covenant."
},
{
"verseNum": 9,
"text": "It belongs to Aaron and his sons, who are to eat it in a holy place; for it is to him a most holy part of the offerings made by fire to the LORD—his portion forever.”"
},
{
"verseNum": 10,
"text": "Now the son of an Israelite mother and an Egyptian father went out among the Israelites, and a fight broke out in the camp between him and an Israelite."
},
{
"verseNum": 11,
"text": "The son of the Israelite woman blasphemed the Name with a curse. So they brought him to Moses. (His mothers name was Shelomith daughter of Dibri, of the tribe of Dan.)"
},
{
"verseNum": 12,
"text": "They placed him in custody until the will of the LORD should be made clear to them."
},
{
"verseNum": 13,
"text": "Then the LORD said to Moses,"
},
{
"verseNum": 14,
"text": "“Take the blasphemer outside the camp, and have all who heard him lay their hands on his head; then have the whole assembly stone him."
},
{
"verseNum": 15,
"text": "And you are to tell the Israelites, If anyone curses his God, he shall bear the consequences of his sin."
},
{
"verseNum": 16,
"text": "Whoever blasphemes the name of the LORD must surely be put to death; the whole assembly must surely stone him, whether he is a foreign resident or native; if he blasphemes the Name, he must be put to death."
},
{
"verseNum": 17,
"text": "And if a man takes the life of anyone else, he must surely be put to death."
},
{
"verseNum": 18,
"text": "Whoever kills an animal must make restitution—life for life."
},
{
"verseNum": 19,
"text": "If anyone injures his neighbor, whatever he has done must be done to him:"
},
{
"verseNum": 20,
"text": "fracture for fracture, eye for eye, tooth for tooth. Just as he injured the other person, the same must be inflicted on him."
},
{
"verseNum": 21,
"text": "Whoever kills an animal must make restitution, but whoever kills a man must be put to death."
},
{
"verseNum": 22,
"text": "You are to have the same standard of law for the foreign resident and the native; for I am the LORD your God.’”"
},
{
"verseNum": 23,
"text": "Then Moses spoke to the Israelites, and they took the blasphemer outside the camp and stoned him. So the Israelites did as the LORD had commanded Moses."
}
]
}