Skip to content

Commit

Permalink
allow generating a token for already configured devices
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander committed Dec 20, 2024
1 parent 153a82a commit f117f68
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/handlers/network_devices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,6 @@ pub(crate) async fn start_network_device_setup_for_device(
));
}

if device.configured {
return Err(WebError::BadRequest(
format!("Failed to start network device setup for a choosen device {}, device is already configured", device.name)
));
}

let mut transaction = appstate.pool.begin().await?;
let user = User::find_by_id(&mut *transaction, device.user_id)
.await?
Expand Down

0 comments on commit f117f68

Please sign in to comment.