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

@ -572,7 +572,7 @@ pub async fn get_user_email(
pub async fn add_user_email(
executor: impl PgExecutor<'_>,
user: &User<PostgresqlBackend>,
email: String,
email: &str,
) -> anyhow::Result<UserEmail<PostgresqlBackend>> {
let res = sqlx::query_as!(
UserEmailLookup,