Skip to main content

password_login

Function password_login 

Source
pub(super) async fn password_login(
    services: &Services,
    user_id: &UserId,
    lowercased_user_id: &UserId,
    password: &str,
) -> Result<OwnedUserId>
Expand description

Authenticates the given user by its ID and its password.

Returns the user ID if successful, and an error otherwise.