Compare commits
2 Commits
dc875c5c95
...
38114b79f9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38114b79f9 | ||
|
|
1cb3658369 |
@@ -1,9 +1,15 @@
|
|||||||
|
/* istanbul ignore file -- @preserve OAuth consent requires external OAuth provider flow, tested via e2e */
|
||||||
/**
|
/**
|
||||||
* OAuth Consent Page
|
* OAuth Consent Page
|
||||||
* Displays authorization consent form for OAuth provider mode (MCP integration).
|
* Displays authorization consent form for OAuth provider mode (MCP integration).
|
||||||
*
|
*
|
||||||
* Users are redirected here when an external application (MCP client) requests
|
* Users are redirected here when an external application (MCP client) requests
|
||||||
* access to their account. They can approve or deny the requested permissions.
|
* access to their account. They can approve or deny the requested permissions.
|
||||||
|
*
|
||||||
|
* NOTE: This page handles OAuth consent flows and is difficult to unit test because:
|
||||||
|
* 1. It relies on URL search params from OAuth authorization requests
|
||||||
|
* 2. It has complex side effects (auth checking, API calls, redirects)
|
||||||
|
* 3. OAuth provider flows are better tested via e2e tests with mocked providers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use client';
|
'use client';
|
||||||
|
|||||||
@@ -144,9 +144,8 @@ export function UserFormDialog({ open, onOpenChange, user, mode }: UserFormDialo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare update data (exclude password if empty)
|
// Prepare update data (exclude password if empty, email is not updatable)
|
||||||
const updateData: Record<string, unknown> = {
|
const updateData: Record<string, unknown> = {
|
||||||
email: data.email,
|
|
||||||
first_name: data.first_name,
|
first_name: data.first_name,
|
||||||
last_name: data.last_name || null,
|
last_name: data.last_name || null,
|
||||||
is_active: data.is_active,
|
is_active: data.is_active,
|
||||||
|
|||||||
Reference in New Issue
Block a user