mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 07:19:22 +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
|
// Perform authentication
|
||||||
let state = get_wan().finish_passkey_authentication(&credentials, &state)?;
|
get_wan().finish_passkey_authentication(&credentials, &state)?;
|
||||||
if !state.user_verified() {
|
|
||||||
r.forbidden("Invalid key! (user_verified = false)".to_string())?;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check key password (if any)
|
// Check key password (if any)
|
||||||
if let Some(pass_hash) = key.password {
|
if let Some(pass_hash) = key.password {
|
||||||
|
Loading…
Reference in New Issue
Block a user