Fix register endpoint to accept camelCase JSON fields
Frontend sends inviteCode but backend expected invite_code, causing deserialization error on registration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
4ea0f163c3
commit
730cf6c738
@@ -9,6 +9,7 @@ use crate::error::ApiError;
|
||||
use crate::middleware::auth::create_token;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct RegisterRequest {
|
||||
pub username: String,
|
||||
pub password: String,
|
||||
|
||||
Reference in New Issue
Block a user