Client.log_in: Add parameter device_id

This parameter was added to the request.

a7bce18b59
This commit is contained in:
Jörg Sommer 2018-08-31 17:42:47 +02:00
parent 66037a9339
commit 04af2e41b4

View File

@ -107,7 +107,7 @@ where
/// In contrast to api::r0::session::login::call(), this method stores the /// In contrast to api::r0::session::login::call(), this method stores the
/// session data returned by the endpoint in this client, instead of /// session data returned by the endpoint in this client, instead of
/// returning it. /// returning it.
pub fn log_in(&self, user: String, password: String) pub fn log_in(&self, user: String, password: String, device_id: Option<String>)
-> impl Future<Item = Session, Error = Error> { -> impl Future<Item = Session, Error = Error> {
use api::r0::session::login; use api::r0::session::login;
@ -117,6 +117,7 @@ where
address: None, address: None,
login_type: login::LoginType::Password, login_type: login::LoginType::Password,
medium: None, medium: None,
device_id,
password, password,
user, user,
}).map(move |response| { }).map(move |response| {