feat: add userid_origin field in the database

This commit is contained in:
RatCornu authored and Jason Volk committed 2025-04-24 11:52:59 +00:00
1 parent bc9cf85807
commit 78a02edbbf
9 files changed
+61 -26

No files matched your search

+3 -1
View File
@@ -68,7 +68,8 @@ pub(super) async fn create_user(&self, username: String, password: Option<String
// Create user
self.services
.users
.create(&user_id, Some(password.as_str()))?;
.create(&user_id, Some(password.as_str()), None)
.await?;
// Default to pretty displayname
let mut displayname = user_id.localpart().to_owned();
@@ -262,6 +263,7 @@ pub(super) async fn reset_password(&self, username: String, password: Option<Str
.services
.users
.set_password(&user_id, Some(new_password.as_str()))
.await
{
| Err(e) => return Err!("Couldn't reset the password for user {user_id}: {e}"),
| Ok(()) =>