mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-25 13:08:50 +00:00
Remove a requirement
This commit is contained in:
parent
bea1c56e44
commit
c3f6c44abf
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user