diff --git a/backend/src/routes/management.rs b/backend/src/routes/management.rs index 9f4af3a..c4f6697 100644 --- a/backend/src/routes/management.rs +++ b/backend/src/routes/management.rs @@ -84,11 +84,10 @@ async fn update_configured_users( data: &ManagementDataVersion ) -> actix_web::Result> { let configured_users = if let ManagementDataVersion::V2(data) = data { - // Get uuids of configured users on wallbox let mut configured_users: Vec = Vec::new(); for user in data.configured_users.iter() { - match get_user_id(&state, FindBy::Email(user.email.to_string())).await { + match get_user_id(&state, FindBy::Email(user.email.to_string().to_lowercase())).await { Ok(u) => { use db_connector::schema::allowed_users::dsl as allowed_users;