remove wrong else logic
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
dd8a6ede09
commit
5bb6128149
1 changed files with 1 additions and 4 deletions
|
@ -13,7 +13,7 @@ use ruma::{
|
|||
events::{room::message::RoomMessageEventContent, GlobalAccountDataEventType},
|
||||
push, UserId,
|
||||
};
|
||||
use tracing::{error, info, warn};
|
||||
use tracing::{info, warn};
|
||||
|
||||
use register::RegistrationKind;
|
||||
|
||||
|
@ -280,9 +280,6 @@ pub async fn register_route(body: Ruma<register::v3::Request>) -> Result<registe
|
|||
.await?;
|
||||
|
||||
warn!("Granting {} admin privileges as the first user", user_id);
|
||||
} else {
|
||||
error!("First registered user \"{user_id}\" is a guest account, not granting admin privileges.\n
|
||||
Recommend disabling public and guest registrations, and using emergency password to get access back, or reset your database with disabled registration.");
|
||||
}
|
||||
|
||||
Ok(register::v3::Response {
|
||||
|
|
Loading…
Add table
Reference in a new issue