feat: ldap login

This commit is contained in:
RatCornu authored and Ellis Git committed 2025-08-23 19:59:36 +00:00
1 parent 8b35de6a43
commit c7adbae03f
17 files changed
+921 -155

No files matched your search

+3 -2
View File
@@ -373,7 +373,7 @@ pub(crate) async fn register_route(
let password = if is_guest { None } else { body.password.as_deref() };
// Create user
services.users.create(&user_id, password)?;
services.users.create(&user_id, password, None).await?;
// Default to pretty displayname
let mut displayname = user_id.localpart().to_owned();
@@ -659,7 +659,8 @@ pub(crate) async fn change_password_route(
services
.users
.set_password(sender_user, Some(&body.new_password))?;
.set_password(sender_user, Some(&body.new_password))
.await?;
if body.logout_devices {
// Logout all devices except the current one