Update ruma
This commit is contained in:
parent
1ce03059a0
commit
21bc099ccf
4 changed files with 38 additions and 36 deletions
|
@ -8,7 +8,7 @@ use ruma::{
|
|||
api::client::{
|
||||
error::ErrorKind,
|
||||
uiaa::{
|
||||
AuthType, IncomingAuthData, IncomingPassword, IncomingUserIdentifier::MatrixId,
|
||||
AuthType, IncomingAuthData, IncomingPassword, IncomingUserIdentifier::UserIdOrLocalpart,
|
||||
UiaaInfo,
|
||||
},
|
||||
},
|
||||
|
@ -74,7 +74,7 @@ impl Uiaa {
|
|||
..
|
||||
}) => {
|
||||
let username = match identifier {
|
||||
MatrixId(username) => username,
|
||||
UserIdOrLocalpart(username) => username,
|
||||
_ => {
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::Unrecognized,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue