Update dependencies
This commit is contained in:
parent
7bb0c8a8c5
commit
1b1f8b6341
10
Cargo.toml
10
Cargo.toml
@ -19,12 +19,12 @@ version = "0.4.0-beta.1"
|
|||||||
futures-core = "0.3.4"
|
futures-core = "0.3.4"
|
||||||
futures-util = "0.3.4"
|
futures-util = "0.3.4"
|
||||||
http = "0.2.1"
|
http = "0.2.1"
|
||||||
hyper = "0.13.4"
|
hyper = "0.13.5"
|
||||||
hyper-tls = { version = "0.4.1", optional = true }
|
hyper-tls = { version = "0.4.1", optional = true }
|
||||||
ruma-api = "0.15.0"
|
ruma-api = "0.16.0-rc.1"
|
||||||
ruma-client-api = "0.7.2"
|
ruma-client-api = "0.8.0-rc.1"
|
||||||
ruma-events = "0.18.0"
|
ruma-events = "0.19.0-rc.1"
|
||||||
ruma-identifiers = "0.14.1"
|
ruma-identifiers = "0.15.1"
|
||||||
serde = { version = "1.0.106", features = ["derive"] }
|
serde = { version = "1.0.106", features = ["derive"] }
|
||||||
serde_json = "1.0.51"
|
serde_json = "1.0.51"
|
||||||
serde_urlencoded = "0.6.1"
|
serde_urlencoded = "0.6.1"
|
||||||
|
18
src/lib.rs
18
src/lib.rs
@ -257,8 +257,8 @@ where
|
|||||||
let response = self
|
let response = self
|
||||||
.request(register::Request {
|
.request(register::Request {
|
||||||
auth: None,
|
auth: None,
|
||||||
bind_email: None,
|
|
||||||
device_id: None,
|
device_id: None,
|
||||||
|
inhibit_login: false,
|
||||||
initial_device_display_name: None,
|
initial_device_display_name: None,
|
||||||
kind: Some(register::RegistrationKind::Guest),
|
kind: Some(register::RegistrationKind::Guest),
|
||||||
password: None,
|
password: None,
|
||||||
@ -267,9 +267,12 @@ where
|
|||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
let session = Session {
|
let session = Session {
|
||||||
access_token: response.access_token,
|
// since we supply inhibit_login: false above, the access token needs to be there
|
||||||
|
// TODO: maybe unwrap is not the best solution though
|
||||||
|
access_token: response.access_token.unwrap(),
|
||||||
identification: Some(Identification {
|
identification: Some(Identification {
|
||||||
device_id: response.device_id,
|
// same as access_token
|
||||||
|
device_id: response.device_id.unwrap(),
|
||||||
user_id: response.user_id,
|
user_id: response.user_id,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
@ -296,8 +299,8 @@ where
|
|||||||
let response = self
|
let response = self
|
||||||
.request(register::Request {
|
.request(register::Request {
|
||||||
auth: None,
|
auth: None,
|
||||||
bind_email: None,
|
|
||||||
device_id: None,
|
device_id: None,
|
||||||
|
inhibit_login: false,
|
||||||
initial_device_display_name: None,
|
initial_device_display_name: None,
|
||||||
kind: Some(register::RegistrationKind::User),
|
kind: Some(register::RegistrationKind::User),
|
||||||
password: Some(password),
|
password: Some(password),
|
||||||
@ -306,9 +309,12 @@ where
|
|||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
let session = Session {
|
let session = Session {
|
||||||
access_token: response.access_token,
|
// since we supply inhibit_login: false above, the access token needs to be there
|
||||||
|
// TODO: maybe unwrap is not the best solution though
|
||||||
|
access_token: response.access_token.unwrap(),
|
||||||
identification: Some(Identification {
|
identification: Some(Identification {
|
||||||
device_id: response.device_id,
|
// same as access_token
|
||||||
|
device_id: response.device_id.unwrap(),
|
||||||
user_id: response.user_id,
|
user_id: response.user_id,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user