diff --git a/backend/src/__tests__/sso.test.ts b/backend/src/__tests__/sso.test.ts index 622381da..b45e42f5 100644 --- a/backend/src/__tests__/sso.test.ts +++ b/backend/src/__tests__/sso.test.ts @@ -268,3 +268,191 @@ describe('Database migration - SSO columns', () => { expect(byProvider!.username).toBe('sso_migration_test'); }); }); + +describe('SSO Role Sync on Re-Login', () => { + beforeAll(async () => { + const { LicenseService } = await import('../services/LicenseService'); + vi.spyOn(LicenseService.getInstance(), 'getSeatLimits').mockReturnValue({ maxAdmins: null, maxViewers: null }); + }); + + afterAll(() => { + vi.restoreAllMocks(); + }); + + it('provisionUser promotes user when IdP role changes to admin', async () => { + const { SSOService } = await import('../services/SSOService'); + const sso = SSOService.getInstance(); + + // Create a viewer + const user1 = sso.provisionUser({ + authProvider: 'oidc_okta', + providerId: 'okta-role-sync-test', + preferredUsername: 'rolesync_user', + email: 'rolesync@example.com', + role: 'viewer', + }); + expect(user1.role).toBe('viewer'); + + // Re-login with admin role from IdP + const user2 = sso.provisionUser({ + authProvider: 'oidc_okta', + providerId: 'okta-role-sync-test', + preferredUsername: 'rolesync_user', + email: 'rolesync@example.com', + role: 'admin', + }); + expect(user2.id).toBe(user1.id); + expect(user2.role).toBe('admin'); + }); + + it('provisionUser demotes user when IdP role changes to viewer', async () => { + const { SSOService } = await import('../services/SSOService'); + const { DatabaseService } = await import('../services/DatabaseService'); + const sso = SSOService.getInstance(); + const db = DatabaseService.getInstance(); + + // Look up user from previous test (should be admin now) + const existing = db.getUserByProviderIdentity('oidc_okta', 'okta-role-sync-test'); + expect(existing).toBeDefined(); + expect(existing!.role).toBe('admin'); + + // Re-login with viewer role (e.g., removed from admin group) + const user = sso.provisionUser({ + authProvider: 'oidc_okta', + providerId: 'okta-role-sync-test', + preferredUsername: 'rolesync_user', + email: 'rolesync@example.com', + role: 'viewer', + }); + expect(user.role).toBe('viewer'); + }); +}); + +describe('SSO Seat Limit Enforcement', () => { + it('downgrades new admin to viewer when admin seats are full', async () => { + const { SSOService } = await import('../services/SSOService'); + const { LicenseService } = await import('../services/LicenseService'); + + // Mock: 1 admin seat max (already used by testadmin) + vi.spyOn(LicenseService.getInstance(), 'getSeatLimits').mockReturnValue({ maxAdmins: 1, maxViewers: null }); + + const sso = SSOService.getInstance(); + const user = sso.provisionUser({ + authProvider: 'oidc_google', + providerId: 'seat-limit-admin-test', + preferredUsername: 'seatlimit_admin', + role: 'admin', + }); + + // Should be downgraded to viewer since admin seat is taken + expect(user.role).toBe('viewer'); + + vi.restoreAllMocks(); + }); + + it('throws when all viewer seats are full', async () => { + const { SSOService } = await import('../services/SSOService'); + const { LicenseService } = await import('../services/LicenseService'); + const { DatabaseService } = await import('../services/DatabaseService'); + const db = DatabaseService.getInstance(); + + // Count existing viewers to set a tight limit + const currentViewers = db.getViewerCount(); + vi.spyOn(LicenseService.getInstance(), 'getSeatLimits').mockReturnValue({ maxAdmins: 1, maxViewers: currentViewers }); + + const sso = SSOService.getInstance(); + expect(() => sso.provisionUser({ + authProvider: 'oidc_google', + providerId: 'seat-limit-viewer-test', + preferredUsername: 'seatlimit_viewer', + role: 'viewer', + })).toThrow('User seat limit reached'); + + vi.restoreAllMocks(); + }); +}); + +describe('LDAP Filter Escaping', () => { + it('escapes special characters in LDAP filters', async () => { + const { SSOService } = await import('../services/SSOService'); + const sso = SSOService.getInstance(); + // Access private method via bracket notation for testing + const escape = (sso as unknown as { escapeLdapFilter: (v: string) => string }).escapeLdapFilter.bind(sso); + + expect(escape('user*(admin)')).toBe('user\\2a\\28admin\\29'); + expect(escape('test\\value')).toBe('test\\5cvalue'); + expect(escape('normal')).toBe('normal'); + expect(escape('null\0byte')).toBe('null\\00byte'); + }); +}); + +describe('SSO Config Validation on PUT', () => { + // We need an Admiral-licensed admin token for these tests. + // Mock getTier/getVariant so requireAdmiral passes. + let admiralToken: string; + + beforeAll(async () => { + const { LicenseService } = await import('../services/LicenseService'); + vi.spyOn(LicenseService.getInstance(), 'getTier').mockReturnValue('paid'); + vi.spyOn(LicenseService.getInstance(), 'getVariant').mockReturnValue('admiral'); + admiralToken = jwt.sign({ username: 'testadmin', role: 'admin' }, TEST_JWT_SECRET, { expiresIn: '1h' }); + }); + + afterAll(() => { + vi.restoreAllMocks(); + }); + + it('rejects enabled LDAP config without Server URL', async () => { + const res = await supertest(app) + .put('/api/sso/config/ldap') + .set('Authorization', `Bearer ${admiralToken}`) + .send({ enabled: true, ldapSearchBase: 'ou=users,dc=example' }); + expect(res.status).toBe(400); + expect(res.body.error).toContain('Server URL'); + }); + + it('rejects enabled LDAP config without Search Base', async () => { + const res = await supertest(app) + .put('/api/sso/config/ldap') + .set('Authorization', `Bearer ${admiralToken}`) + .send({ enabled: true, ldapUrl: 'ldap://localhost:389' }); + expect(res.status).toBe(400); + expect(res.body.error).toContain('Search Base'); + }); + + it('rejects enabled OIDC config without Client ID', async () => { + const res = await supertest(app) + .put('/api/sso/config/oidc_google') + .set('Authorization', `Bearer ${admiralToken}`) + .send({ enabled: true }); + expect(res.status).toBe(400); + expect(res.body.error).toContain('Client ID'); + }); + + it('rejects enabled Okta config without Issuer URL', async () => { + const res = await supertest(app) + .put('/api/sso/config/oidc_okta') + .set('Authorization', `Bearer ${admiralToken}`) + .send({ enabled: true, oidcClientId: 'test-client-id' }); + expect(res.status).toBe(400); + expect(res.body.error).toContain('Issuer URL'); + }); + + it('allows saving disabled config without required fields', async () => { + const res = await supertest(app) + .put('/api/sso/config/ldap') + .set('Authorization', `Bearer ${admiralToken}`) + .send({ enabled: false }); + expect(res.status).toBe(200); + expect(res.body.success).toBe(true); + }); + + it('rejects invalid provider name', async () => { + const res = await supertest(app) + .put('/api/sso/config/invalid_provider') + .set('Authorization', `Bearer ${admiralToken}`) + .send({ enabled: true }); + expect(res.status).toBe(400); + expect(res.body.error).toContain('Invalid SSO provider'); + }); +}); diff --git a/backend/src/index.ts b/backend/src/index.ts index 0941f081..74ca3f32 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -800,6 +800,7 @@ app.post('/api/auth/sso/ldap', authRateLimiter, async (req: Request, res: Respon // Issue JWT (same as local login) const settings = DatabaseService.getInstance().getGlobalSettings(); issueSessionCookie(res, req, user, settings.auth_jwt_secret); + console.log(`[SSO] LDAP login successful: ${user.username}`); res.json({ success: true, message: 'Login successful' }); } catch (error: unknown) { const msg = error instanceof Error ? error.message : 'LDAP login failed'; @@ -842,7 +843,7 @@ app.get('/api/auth/sso/oidc/:provider/authorize', ssoRateLimiter, async (req: Re }); // OIDC: Callback from identity provider -app.get('/api/auth/sso/oidc/:provider/callback', async (req: Request, res: Response): Promise => { +app.get('/api/auth/sso/oidc/:provider/callback', ssoRateLimiter, async (req: Request, res: Response): Promise => { try { const provider = String(req.params.provider); const code = String(req.query.code || ''); @@ -862,6 +863,8 @@ app.get('/api/auth/sso/oidc/:provider/callback', async (req: Request, res: Respo // Read and validate state cookie const stateCookie = req.cookies?.sencho_sso_state; + // Always clear the one-time state cookie, regardless of outcome + res.clearCookie('sencho_sso_state', { httpOnly: true, secure: isSecureRequest(req), sameSite: 'lax' }); if (!stateCookie) { res.redirect('/?sso_error=SSO+session+expired.+Please+try+again.'); return; @@ -878,7 +881,7 @@ app.get('/api/auth/sso/oidc/:provider/callback', async (req: Request, res: Respo } if (statePayload.provider !== provider) { - res.redirect('/?sso_error=Provider+mismatch'); + res.redirect(`/?sso_error=${encodeURIComponent(`Provider mismatch: expected ${statePayload.provider}, got ${provider}`)}`); return; } @@ -892,9 +895,6 @@ app.get('/api/auth/sso/oidc/:provider/callback', async (req: Request, res: Respo statePayload.codeVerifier ); - // Clear state cookie - res.clearCookie('sencho_sso_state', { httpOnly: true, secure: isSecureRequest(req), sameSite: 'lax' }); - if (!result.success || !result.user) { res.redirect(`/?sso_error=${encodeURIComponent(result.error || 'Authentication failed')}`); return; @@ -912,6 +912,7 @@ app.get('/api/auth/sso/oidc/:provider/callback', async (req: Request, res: Respo // Issue JWT + cookie (same as local login) const settings = DatabaseService.getInstance().getGlobalSettings(); issueSessionCookie(res, req, user, settings.auth_jwt_secret); + console.log(`[SSO] OIDC login successful: ${user.username} via ${provider}`); res.redirect('/'); } catch (error: unknown) { @@ -4670,7 +4671,25 @@ app.put('/api/sso/config/:provider', (req: Request, res: Response): void => { return; } const config = { ...req.body, provider } as import('./services/SSOService').SSOProviderConfig; + + // Validate required fields when enabling a provider + if (config.enabled) { + const missing: string[] = []; + if (provider === 'ldap') { + if (!config.ldapUrl?.trim()) missing.push('Server URL'); + if (!config.ldapSearchBase?.trim()) missing.push('Search Base'); + } else { + if (!config.oidcClientId?.trim()) missing.push('Client ID'); + if (provider === 'oidc_okta' && !config.oidcIssuerUrl?.trim()) missing.push('Issuer URL'); + } + if (missing.length > 0) { + res.status(400).json({ error: `Missing required fields: ${missing.join(', ')}` }); + return; + } + } + SSOService.getInstance().saveProviderConfig(config); + console.log(`[SSO] Config updated: ${provider} ${config.enabled ? 'enabled' : 'disabled'}`); res.json({ success: true, message: 'SSO configuration saved' }); } catch (error) { console.error('[SSO] Failed to save SSO config:', error); @@ -4686,7 +4705,9 @@ app.delete('/api/sso/config/:provider', (req: Request, res: Response): void => { if (!requireAdmin(req, res)) return; if (!requireAdmiral(req, res)) return; try { - SSOService.getInstance().deleteProviderConfig(String(req.params.provider)); + const deletedProvider = String(req.params.provider); + SSOService.getInstance().deleteProviderConfig(deletedProvider); + console.log(`[SSO] Config deleted: ${deletedProvider}`); res.json({ success: true, message: 'SSO configuration deleted' }); } catch (error) { console.error('[SSO] Failed to delete SSO config:', error); diff --git a/backend/src/services/SSOService.ts b/backend/src/services/SSOService.ts index 9d41d0b8..62f53ac3 100644 --- a/backend/src/services/SSOService.ts +++ b/backend/src/services/SSOService.ts @@ -14,6 +14,7 @@ import { DatabaseService, User, AuthProvider } from './DatabaseService'; import { CryptoService } from './CryptoService'; import { LicenseService } from './LicenseService'; import { CacheService } from './CacheService'; +import { isDebugEnabled } from '../utils/debug'; // OIDC discovery metadata changes rarely; caching it eliminates the redundant // HTTPS round-trip between getOIDCAuthorizationUrl and handleOIDCCallback in @@ -221,8 +222,12 @@ export class SSOService { return { success: false, error: 'LDAP configuration is incomplete' }; } + const debug = isDebugEnabled(); + if (debug) console.debug('[SSO:debug] LDAP auth attempt', { username, hasBindDn: !!config.ldapBindDn, url: config.ldapUrl }); + const client = new LdapClient({ url: config.ldapUrl, + connectTimeout: 10000, tlsOptions: { rejectUnauthorized: config.ldapTlsRejectUnauthorized !== false, }, @@ -232,6 +237,8 @@ export class SSOService { // Step 1: Bind with service account to search for the user if (config.ldapBindDn && config.ldapBindPassword) { await client.bind(config.ldapBindDn, config.ldapBindPassword); + } else if (config.ldapBindDn && !config.ldapBindPassword) { + console.warn('[SSO] LDAP bind DN configured but bind password is empty; anonymous bind will be used'); } // Step 2: Search for the user @@ -246,13 +253,19 @@ export class SSOService { return { success: false, error: 'Invalid credentials' }; } + if (searchEntries.length > 1) { + console.warn(`[SSO] LDAP search returned ${searchEntries.length} entries for username "${username}"; using first match. Consider narrowing your search filter.`); + } + const userEntry = searchEntries[0]; const userDn = userEntry.dn; + if (debug) console.debug('[SSO:debug] LDAP user found', { dn: userDn, hasEmail: !!(userEntry['mail'] || userEntry['email']) }); // Step 3: Bind as the user to verify their password await client.unbind(); const userClient = new LdapClient({ url: config.ldapUrl, + connectTimeout: 10000, tlsOptions: { rejectUnauthorized: config.ldapTlsRejectUnauthorized !== false, }, @@ -263,11 +276,12 @@ export class SSOService { } catch { return { success: false, error: 'Invalid credentials' }; } finally { - try { await userClient.unbind(); } catch { /* ignore */ } + try { await userClient.unbind(); } catch (e) { if (debug) console.debug('[SSO:debug] LDAP user unbind error (non-critical):', (e as Error).message); } } // Step 4: Determine role from group membership const role = this.resolveRoleFromLdap(userEntry, config); + if (debug) console.debug('[SSO:debug] LDAP role resolved', { username, role }); // Extract user info const preferredUsername = String( @@ -289,7 +303,7 @@ export class SSOService { console.error('[SSO] LDAP authentication error:', message); return { success: false, error: 'LDAP authentication failed. Check server connectivity.' }; } finally { - try { await client.unbind(); } catch { /* ignore */ } + try { await client.unbind(); } catch (e) { if (debug) console.debug('[SSO:debug] LDAP service unbind error (non-critical):', (e as Error).message); } } } @@ -343,6 +357,7 @@ export class SSOService { const codeChallenge = await calculatePKCECodeChallenge(codeVerifier); const scopes = config.oidcScopes || 'openid email profile'; + if (isDebugEnabled()) console.debug('[SSO:debug] OIDC auth URL', { provider, scopes }); const url = buildAuthorizationUrl(oidcConfig, { redirect_uri: callbackUrl, @@ -407,8 +422,9 @@ export class SSOService { } const email = String(userInfo.email || ''); - const name = String(userInfo.name || userInfo.preferred_username || userInfo.login || email.split('@')[0] || 'sso_user'); + const name = String(userInfo.name || userInfo.preferred_username || userInfo.login || email.split('@')[0] || `sso_${sub.substring(0, 8)}`); const role = this.resolveRoleFromOidc(userInfo, config); + if (isDebugEnabled()) console.debug('[SSO:debug] OIDC userInfo resolved', { provider, sub, email: email || '(none)', name, role }); return { success: true, @@ -436,6 +452,9 @@ export class SSOService { }), ]); + if (!userRes.ok) { + throw new Error(`GitHub user API returned ${userRes.status}`); + } const user = await userRes.json() as Record; let primaryEmail = ''; try { @@ -514,13 +533,36 @@ export class SSOService { role: 'admin' | 'viewer'; }): User { const db = DatabaseService.getInstance(); + const debug = isDebugEnabled(); + if (debug) console.debug('[SSO:debug] provisionUser', { authProvider: params.authProvider, providerId: params.providerId, preferredUsername: params.preferredUsername, role: params.role }); // Check if user already exists by provider identity const existing = db.getUserByProviderIdentity(params.authProvider, params.providerId); if (existing) { + const updates: Partial<{ email: string; role: string }> = {}; + // Update email if changed if (params.email && params.email !== existing.email) { - db.updateUser(existing.id, { email: params.email }); + updates.email = params.email; + } + + // Sync role from identity provider on every login + if (params.role !== existing.role) { + if (params.role === 'admin') { + const seatLimits = LicenseService.getInstance().getSeatLimits(); + if (seatLimits.maxAdmins === null || db.getAdminCount() < seatLimits.maxAdmins) { + updates.role = params.role; + } + // If admin seats full, keep current role rather than upgrading + } else { + // Always allow demotion (e.g., removed from admin group) + updates.role = params.role; + } + } + + if (Object.keys(updates).length > 0) { + if (debug) console.debug('[SSO:debug] Updating existing user', { userId: existing.id, username: existing.username, updates }); + db.updateUser(existing.id, updates); } return db.getUser(existing.id) || existing; } @@ -529,7 +571,8 @@ export class SSOService { let { role } = params; const seatLimits = LicenseService.getInstance().getSeatLimits(); if (role === 'admin' && seatLimits.maxAdmins !== null && db.getAdminCount() >= seatLimits.maxAdmins) { - role = 'viewer'; // Downgrade to viewer if admin seats full + console.warn(`[SSO] Admin seat limit reached; provisioning ${params.preferredUsername} as viewer instead of admin`); + role = 'viewer'; } if (role === 'viewer' && seatLimits.maxViewers !== null && db.getViewerCount() >= seatLimits.maxViewers) { throw new Error('User seat limit reached. Contact your administrator to increase your license.'); @@ -561,6 +604,7 @@ export class SSOService { const user = db.getUser(id); if (!user) throw new Error('Failed to create SSO user'); + if (debug) console.debug('[SSO:debug] New user provisioned', { userId: user.id, username, role }); return user; } @@ -572,6 +616,7 @@ export class SSOService { return { success: false, error: 'LDAP not configured' }; } + const debug = isDebugEnabled(); const client = new LdapClient({ url: config.ldapUrl, tlsOptions: { rejectUnauthorized: config.ldapTlsRejectUnauthorized !== false }, @@ -587,7 +632,7 @@ export class SSOService { const message = err instanceof Error ? err.message : 'Connection failed'; return { success: false, error: message }; } finally { - try { await client.unbind(); } catch { /* ignore */ } + try { await client.unbind(); } catch (e) { if (debug) console.debug('[SSO:debug] LDAP test unbind error (non-critical):', (e as Error).message); } } } diff --git a/docs/features/sso.mdx b/docs/features/sso.mdx index 424d00fa..47e4d35d 100644 --- a/docs/features/sso.mdx +++ b/docs/features/sso.mdx @@ -47,7 +47,7 @@ When a user logs in via SSO for the first time, Sencho automatically creates a l - **Password** is set to an unusable placeholder - SSO users cannot log in with a password - **Seat limits** from your license apply. If admin seats are full, the user is downgraded to Viewer. If all seats are full, login is denied with a clear error message. -On subsequent logins, the existing account is reused. The user's email is updated if it changed at the provider. +On subsequent logins, the existing account is reused. The user's **email** and **role** are synced from the identity provider on every login. If a user is added to your admin group, they will be promoted to Admin on their next login. If removed, they will be demoted to their default role. Seat limits are respected: if admin seats are full, the promotion is deferred until a seat opens up. ## Role mapping @@ -119,6 +119,7 @@ OIDC providers (Google, GitHub, Okta) share a common configuration form: | **Client Secret** | OAuth client secret | | **Admin Claim** | JWT claim name inspected for role mapping (e.g., `groups`) | | **Admin Claim Value** | Value within the claim that grants Admin (e.g., `sencho-admins`) | +| **Scopes** | Space-separated OAuth scopes (default: `openid email profile`). Customize if your provider requires additional scopes for group claims. | | **Default Role** | Role assigned when no claim mapping matches (Viewer or Admin) | diff --git a/docs/getting-started/sso-quickstart.mdx b/docs/getting-started/sso-quickstart.mdx index 41fca73a..3cd790ee 100644 --- a/docs/getting-started/sso-quickstart.mdx +++ b/docs/getting-started/sso-quickstart.mdx @@ -113,7 +113,11 @@ By default, all SSO users are assigned the **Viewer** role. To grant Admin to sp - SSO_OIDC_ADMIN_CLAIM_VALUE=sencho-admins ``` -This tells Sencho to check the `groups` claim in the OIDC ID token. If it contains `sencho-admins`, the user gets Admin. +This tells Sencho to check the `groups` claim in the OIDC ID token. If it contains `sencho-admins`, the user gets Admin. Roles are synced on every login, so removing a user from the admin group will demote them on their next sign-in. + + + Some providers (e.g., Azure AD, Okta) require custom scopes to include group claims in the ID token. You can configure additional scopes in the **Scopes** field in Settings > SSO, or via environment variable. The default is `openid email profile`. + ## Full docker-compose.yml example with SSO diff --git a/docs/images/sso/sso-settings-ldap.png b/docs/images/sso/sso-settings-ldap.png index 1d53e884..c83b24a4 100644 Binary files a/docs/images/sso/sso-settings-ldap.png and b/docs/images/sso/sso-settings-ldap.png differ diff --git a/docs/images/sso/sso-settings-oidc.png b/docs/images/sso/sso-settings-oidc.png index 3e1a516d..ea05a0fd 100644 Binary files a/docs/images/sso/sso-settings-oidc.png and b/docs/images/sso/sso-settings-oidc.png differ diff --git a/docs/images/sso/sso-settings.png b/docs/images/sso/sso-settings.png index 02ee695d..43ea2f4d 100644 Binary files a/docs/images/sso/sso-settings.png and b/docs/images/sso/sso-settings.png differ diff --git a/frontend/src/components/Login.tsx b/frontend/src/components/Login.tsx index e351568f..03b54dac 100644 --- a/frontend/src/components/Login.tsx +++ b/frontend/src/components/Login.tsx @@ -159,7 +159,7 @@ export function Login({ /> {error && ( -
+
{error}
)} diff --git a/frontend/src/components/SSOSection.tsx b/frontend/src/components/SSOSection.tsx index 5b0b4ac3..97c41622 100644 --- a/frontend/src/components/SSOSection.tsx +++ b/frontend/src/components/SSOSection.tsx @@ -3,7 +3,7 @@ import { Input } from '@/components/ui/input'; import { Switch } from '@/components/ui/switch'; import { Button } from '@/components/ui/button'; import { Label } from '@/components/ui/label'; -import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; +import { Combobox } from '@/components/ui/combobox'; import { Badge } from '@/components/ui/badge'; import { toast } from '@/components/ui/toast-store'; import { apiFetch } from '@/lib/api'; @@ -12,6 +12,11 @@ import { CapabilityGate } from './CapabilityGate'; import { TierBadge } from './TierBadge'; import { Shield, Loader2, CheckCircle, XCircle } from 'lucide-react'; +const ROLE_OPTIONS = [ + { value: 'viewer', label: 'Viewer' }, + { value: 'admin', label: 'Admin' }, +]; + interface SSOProviderConfig { provider: string; enabled: boolean; @@ -120,7 +125,7 @@ function ProviderCard({ providerId, type, label, initialConfig, onSave }: { }; return ( -
+
setExpanded(!expanded)} @@ -204,16 +209,12 @@ function ProviderCard({ providerId, type, label, initialConfig, onSave }: {
- + placeholder="Select role" + />
@@ -273,18 +274,27 @@ function ProviderCard({ providerId, type, label, initialConfig, onSave }: { />
-
- - +
+
+ + update('oidcScopes', e.target.value)} + /> +

+ Space-separated list of OAuth scopes. Leave blank for default. +

+
+
+ + update('oidcDefaultRole', v)} + placeholder="Select role" + /> +
)} @@ -300,11 +310,11 @@ function ProviderCard({ providerId, type, label, initialConfig, onSave }: { {testResult && ( testResult.success ? - : + : )}
{initialConfig && ( - )} diff --git a/frontend/src/components/login-form.tsx b/frontend/src/components/login-form.tsx deleted file mode 100644 index 2cb7f7ac..00000000 --- a/frontend/src/components/login-form.tsx +++ /dev/null @@ -1,68 +0,0 @@ -import { cn } from "@/lib/utils" -import { Button } from "@/components/ui/button" -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from "@/components/ui/card" -import { Input } from "@/components/ui/input" -import { Label } from "@/components/ui/label" - -export function LoginForm({ - className, - ...props -}: React.ComponentPropsWithoutRef<"div">) { - return ( -
- - - Login - - Enter your email below to login to your account - - - -
-
-
- - -
-
- - -
- - -
-
- Don't have an account?{" "} - - Sign up - -
-
-
-
-
- ) -}