You've already forked authentication-service
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user