Skip to main content

login_handler

Function login_handler 

Source
async fn login_handler(
    state: State<ServerState>,
    __arg1: RequestSource,
    __arg2: AppserviceTokenOptionalClientRequest<Request>,
) -> Result<ArminiusResponse<Response>, LoginError>
Expand description

Handler for POST /_matrix/client/v3/login (See https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3login).

Endpoint used to sign-in a Matrix user.

Warning: Does not check whether the password is correct.