1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Remove the login policy (since it is not implemented yet)

This commit is contained in:
Quentin Gliech
2022-06-03 12:46:05 +02:00
parent 7c8893e596
commit eb22c33a7d
5 changed files with 3 additions and 38 deletions

View File

@@ -25,10 +25,6 @@ fn default_client_registration_endpoint() -> String {
"client_registration/violation".to_string()
}
fn default_login_endpoint() -> String {
"login/violation".to_string()
}
fn default_register_endpoint() -> String {
"register/violation".to_string()
}
@@ -45,10 +41,6 @@ pub struct PolicyConfig {
#[serde(default = "default_client_registration_endpoint")]
pub client_registration_entrypoint: String,
/// Entrypoint to use when evaluating user logins
#[serde(default = "default_login_endpoint")]
pub login_entrypoint: String,
/// Entrypoint to use when evaluating user registrations
#[serde(default = "default_register_endpoint")]
pub register_entrypoint: String,
@@ -63,7 +55,6 @@ impl Default for PolicyConfig {
Self {
wasm_module: None,
client_registration_entrypoint: default_client_registration_endpoint(),
login_entrypoint: default_login_endpoint(),
register_entrypoint: default_register_endpoint(),
data: None,
}