mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
feat: Restrict reset token command
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user