commit 03ff5e6ecea1de20054f580535f6d3586d09f79e
parent a4e80712ddbb8f58243e730149f259e6c3c94eca
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Tue, 21 Feb 2023 21:26:57 +0100
Merge branch 'BlackDex-fix-client-api-login-checks'
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/api/identity.rs b/src/api/identity.rs
@@ -52,6 +52,10 @@ async fn login(data: Form<ConnectData>, client_header: ClientHeaders, mut conn:
_check_is_some(&data.client_secret, "client_secret cannot be blank")?;
_check_is_some(&data.scope, "scope cannot be blank")?;
+ _check_is_some(&data.device_identifier, "device_identifier cannot be blank")?;
+ _check_is_some(&data.device_name, "device_name cannot be blank")?;
+ _check_is_some(&data.device_type, "device_type cannot be blank")?;
+
_api_key_login(data, &mut user_uuid, &mut conn, &ip).await
}
t => err!("Invalid type", t),