1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-25 23:09:22 +00:00

Remove a requirement

This commit is contained in:
Pierre HUBERT 2022-08-24 20:11:16 +02:00
parent bea1c56e44
commit c3f6c44abf

View File

@ -144,10 +144,7 @@ pub async fn auth_with_key(r: &mut HttpRequestHandler) -> RequestResult {
)?;
// Perform authentication
let state = get_wan().finish_passkey_authentication(&credentials, &state)?;
if !state.user_verified() {
r.forbidden("Invalid key! (user_verified = false)".to_string())?;
}
get_wan().finish_passkey_authentication(&credentials, &state)?;
// Check key password (if any)
if let Some(pass_hash) = key.password {