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,32 @@
\id PS2
\h Psalm 151
\toc1 Psalm 151
\toc2 Psalm 151
\toc3 Ps2
\mt1 Psalm 151
\ip \bk Psalm 151\bk* is recognized as Deuterocanonical Scripture by the Greek Orthodox and Russian Orthodox Churches.
\c 1
\cp 151
\d This Psalm is a genuine one of David, though extra,\f + \fr 1:0 \ft or, supernumerary\f* composed when he fought in single combat with Goliath.
\q1
\v 1 I was small among my brothers,
\q2 and youngest in my fathers house.
\q2 I tended my fathers sheep.
\q1
\v 2 My hands formed a musical instrument,
\q2 and my fingers tuned a lyre.
\q1
\v 3 Who shall tell my Lord?
\q2 The Lord himself, he himself hears.
\q1
\v 4 He sent forth his angel and took me from my fathers sheep,
\q2 and he anointed me with his anointing oil.
\q1
\v 5 My brothers were handsome and tall;
\q2 but the Lord didnt take pleasure in them.
\q1
\v 6 I went out to meet the Philistine,
\q2 and he cursed me by his idols.
\q1
\v 7 But I drew his own sword and beheaded him,
\q2 and removed reproach from the children of Israel.