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

Add an email field in the registration form

This commit is contained in:
Quentin Gliech
2022-06-02 15:40:02 +02:00
parent f88ff5517d
commit e0c4b39482
8 changed files with 57 additions and 10 deletions

View File

@ -331,6 +331,12 @@ impl AccountVerifyEmail {
}
}
#[must_use]
pub fn and_maybe(mut self, action: Option<PostAuthAction>) -> Self {
self.post_auth_action = action;
self
}
#[must_use]
pub fn and_then(mut self, action: PostAuthAction) -> Self {
self.post_auth_action = Some(action);