Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-22 05:10:29 +01:00
Implemented PUT for u2f registration
Dieser Commit ist enthalten in:
Ursprung
16056626b0
Commit
d3f357b708
2 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
|
@ -73,6 +73,7 @@ pub fn routes() -> Vec<Route> {
|
||||||
activate_authenticator_put,
|
activate_authenticator_put,
|
||||||
generate_u2f,
|
generate_u2f,
|
||||||
activate_u2f,
|
activate_u2f,
|
||||||
|
activate_u2f_put,
|
||||||
|
|
||||||
get_organization,
|
get_organization,
|
||||||
create_organization,
|
create_organization,
|
||||||
|
|
|
@ -374,6 +374,11 @@ fn activate_u2f(data: JsonUpcase<EnableU2FData>, headers: Headers, conn: DbConn)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[put("/two-factor/u2f", data = "<data>")]
|
||||||
|
fn activate_u2f_put(data: JsonUpcase<EnableU2FData>, headers: Headers, conn: DbConn) -> JsonResult {
|
||||||
|
activate_u2f(data,headers, conn)
|
||||||
|
}
|
||||||
|
|
||||||
fn _create_u2f_challenge(user_uuid: &str, type_: TwoFactorType, conn: &DbConn) -> Challenge {
|
fn _create_u2f_challenge(user_uuid: &str, type_: TwoFactorType, conn: &DbConn) -> Challenge {
|
||||||
let challenge = U2F.generate_challenge().unwrap();
|
let challenge = U2F.generate_challenge().unwrap();
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren