mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Refactor join, alias services
Split knock, user register from api into services Fix autojoin not working with v12 rooms Fix 'm.login.registration_token/validity' for reloaded registration tokens Change join servers order Move autojoin for ldap
This commit is contained in:
1 parent
959c559bd8
commit
7115fb2796
25 files changed
+1152
-1333
No files matched your search
@@ -3,6 +3,7 @@ pub mod device;
|
||||
mod keys;
|
||||
mod ldap;
|
||||
mod profile;
|
||||
mod register;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -124,10 +125,8 @@ impl Service {
|
||||
password: Option<&str>,
|
||||
origin: Option<&str>,
|
||||
) -> Result {
|
||||
origin.map_or_else(
|
||||
|| self.db.userid_origin.insert(user_id, "password"),
|
||||
|origin| self.db.userid_origin.insert(user_id, origin),
|
||||
);
|
||||
let origin = origin.unwrap_or("password");
|
||||
self.db.userid_origin.insert(user_id, origin);
|
||||
self.set_password(user_id, password).await
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user