chore: Change password reset page path

This commit is contained in:
Ginger
2026-03-18 12:42:55 -04:00
parent f11943b956
commit 5716c36b47
3 changed files with 4 additions and 7 deletions
+1 -2
View File
@@ -19,9 +19,8 @@ pub struct ResetTokenInfo {
}
impl ResetTokenInfo {
const MAX_TOKEN_AGE: Duration = Duration::from_secs(60 * 60);
// one hour
const MAX_TOKEN_AGE: Duration = Duration::from_secs(60 * 60);
pub fn is_valid(&self) -> bool {
let now = SystemTime::now();
+1 -1
View File
@@ -8,7 +8,7 @@ use ruma::OwnedUserId;
use crate::{Dep, globals, users};
pub const PASSWORD_RESET_PATH: &str = "/_continuwuity/password_reset";
pub const PASSWORD_RESET_PATH: &str = "/_continuwuity/account/reset_password";
pub const RESET_TOKEN_QUERY_PARAM: &str = "token";
const RESET_TOKEN_LENGTH: usize = 32;