You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Better adhere to MSC process
This commit is contained in:
@@ -41,8 +41,6 @@ export interface IIdentityProvider {
|
|||||||
|
|
||||||
export interface ISSOFlow {
|
export interface ISSOFlow {
|
||||||
type: "m.login.sso" | "m.login.cas";
|
type: "m.login.sso" | "m.login.cas";
|
||||||
// eslint-disable-next-line camelcase
|
|
||||||
identity_providers: IIdentityProvider[];
|
|
||||||
"org.matrix.msc2858.identity_providers": IIdentityProvider[]; // Unstable prefix for MSC2858
|
"org.matrix.msc2858.identity_providers": IIdentityProvider[]; // Unstable prefix for MSC2858
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ interface IProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const SSOButtons: React.FC<IProps> = ({matrixClient, flow, loginType, fragmentAfterLogin, primary}) => {
|
const SSOButtons: React.FC<IProps> = ({matrixClient, flow, loginType, fragmentAfterLogin, primary}) => {
|
||||||
const providers = flow.identity_providers || flow["org.matrix.msc2858.identity_providers"] || [];
|
const providers = flow["org.matrix.msc2858.identity_providers"] || [];
|
||||||
if (providers.length < 2) {
|
if (providers.length < 2) {
|
||||||
return <div className="mx_SSOButtons">
|
return <div className="mx_SSOButtons">
|
||||||
<SSOButton
|
<SSOButton
|
||||||
|
|||||||
Reference in New Issue
Block a user