1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Better log email errors

This commit is contained in:
Quentin Gliech
2022-12-14 16:15:55 +01:00
parent 9a39bf3f09
commit 829e503467
3 changed files with 23 additions and 1 deletions

View File

@ -594,6 +594,18 @@ impl EmailVerificationContext {
pub fn new(user: User, verification: UserEmailVerification) -> Self {
Self { user, verification }
}
/// Get the user to which this email is being sent
#[must_use]
pub fn user(&self) -> &User {
&self.user
}
/// Get the verification code being sent
#[must_use]
pub fn verification(&self) -> &UserEmailVerification {
&self.verification
}
}
impl TemplateContext for EmailVerificationContext {