feat: Restrict reset token command

This commit is contained in:
Ginger 2026-03-07 13:44:33 -05:00
parent ae2b87f03f
commit bf001f96d6
No known key found for this signature in database

View file

@ -300,6 +300,8 @@ pub(super) async fn reset_password(
pub(super) async fn issue_password_reset_link(&self, username: String) -> Result { pub(super) async fn issue_password_reset_link(&self, username: String) -> Result {
use conduwuit_service::password_reset::{PASSWORD_RESET_PATH, RESET_TOKEN_QUERY_PARAM}; use conduwuit_service::password_reset::{PASSWORD_RESET_PATH, RESET_TOKEN_QUERY_PARAM};
self.bail_restricted()?;
let mut reset_url = self let mut reset_url = self
.services .services
.config .config