feat: Restrict reset token command
This commit is contained in:
parent
ae2b87f03f
commit
bf001f96d6
1 changed files with 2 additions and 0 deletions
|
|
@ -300,6 +300,8 @@ pub(super) async fn reset_password(
|
|||
pub(super) async fn issue_password_reset_link(&self, username: String) -> Result {
|
||||
use conduwuit_service::password_reset::{PASSWORD_RESET_PATH, RESET_TOKEN_QUERY_PARAM};
|
||||
|
||||
self.bail_restricted()?;
|
||||
|
||||
let mut reset_url = self
|
||||
.services
|
||||
.config
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue