/// Retrieve a token registering a user if required.
Retrieve a token registering a user if required.
Retrieve a token registering a user if required .
pub fn login(client: &Client) -> Token {
    try_login(client).unwrap_or_else(|| {
        register(client, FIRST_NAME, LAST_NAME, EMAIL, PASSWORD);
        try_login(client).expect("Cannot login")
    })
}
pub fn login ( client : & Client ) -> Token { try_login ( client ) . unwrap_or_else ( | | { register ( client , FIRST_NAME , LAST_NAME , EMAIL , PASSWORD ) ; try_login ( client ) . expect ( " " ) } ) }
Retrieve a token registering a user if required.
Retrieve a token registering a user if required .
client
&Client