You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Actually send emails for recovery
This commit is contained in:
@@ -808,6 +808,31 @@ impl Route for AccountRecoveryProgress {
|
||||
}
|
||||
}
|
||||
|
||||
/// `GET|POST /recover/complete?ticket=:ticket`
|
||||
#[derive(Default, Serialize, Deserialize, Debug, Clone)]
|
||||
pub struct AccountRecoveryFinish {
|
||||
ticket: String,
|
||||
}
|
||||
|
||||
impl AccountRecoveryFinish {
|
||||
#[must_use]
|
||||
pub fn new(ticket: String) -> Self {
|
||||
Self { ticket }
|
||||
}
|
||||
}
|
||||
|
||||
impl Route for AccountRecoveryFinish {
|
||||
type Query = AccountRecoveryFinish;
|
||||
|
||||
fn route() -> &'static str {
|
||||
"/recover/complete"
|
||||
}
|
||||
|
||||
fn query(&self) -> Option<&Self::Query> {
|
||||
Some(self)
|
||||
}
|
||||
}
|
||||
|
||||
/// `GET /assets`
|
||||
pub struct StaticAsset {
|
||||
path: String,
|
||||
|
||||
Reference in New Issue
Block a user