You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
GraphQL API: Add password_change_allowed to SiteConfig (#2857)
This commit is contained in:
@@ -34,11 +34,14 @@ pub struct SiteConfig {
|
|||||||
/// Imprint to show in the footer.
|
/// Imprint to show in the footer.
|
||||||
imprint: Option<String>,
|
imprint: Option<String>,
|
||||||
|
|
||||||
/// Whether user can change their email.
|
/// Whether users can change their email.
|
||||||
email_change_allowed: bool,
|
email_change_allowed: bool,
|
||||||
|
|
||||||
/// Whether user can change their display name.
|
/// Whether users can change their display name.
|
||||||
display_name_change_allowed: bool,
|
display_name_change_allowed: bool,
|
||||||
|
|
||||||
|
/// Whether passwords are enabled and users can change their own passwords.
|
||||||
|
password_change_allowed: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[ComplexObject]
|
#[ComplexObject]
|
||||||
@@ -60,6 +63,7 @@ impl SiteConfig {
|
|||||||
imprint: data_model.imprint.clone(),
|
imprint: data_model.imprint.clone(),
|
||||||
email_change_allowed: data_model.email_change_allowed,
|
email_change_allowed: data_model.email_change_allowed,
|
||||||
display_name_change_allowed: data_model.displayname_change_allowed,
|
display_name_change_allowed: data_model.displayname_change_allowed,
|
||||||
|
password_change_allowed: data_model.password_change_allowed,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1341,14 +1341,18 @@ type SiteConfig implements Node {
|
|||||||
"""
|
"""
|
||||||
imprint: String
|
imprint: String
|
||||||
"""
|
"""
|
||||||
Whether user can change their email.
|
Whether users can change their email.
|
||||||
"""
|
"""
|
||||||
emailChangeAllowed: Boolean!
|
emailChangeAllowed: Boolean!
|
||||||
"""
|
"""
|
||||||
Whether user can change their display name.
|
Whether users can change their display name.
|
||||||
"""
|
"""
|
||||||
displayNameChangeAllowed: Boolean!
|
displayNameChangeAllowed: Boolean!
|
||||||
"""
|
"""
|
||||||
|
Whether passwords are enabled and users can change their own passwords.
|
||||||
|
"""
|
||||||
|
passwordChangeAllowed: Boolean!
|
||||||
|
"""
|
||||||
The ID of the site configuration.
|
The ID of the site configuration.
|
||||||
"""
|
"""
|
||||||
id: ID!
|
id: ID!
|
||||||
|
|||||||
@@ -997,14 +997,16 @@ export enum SetPrimaryEmailStatus {
|
|||||||
|
|
||||||
export type SiteConfig = Node & {
|
export type SiteConfig = Node & {
|
||||||
__typename?: 'SiteConfig';
|
__typename?: 'SiteConfig';
|
||||||
/** Whether user can change their display name. */
|
/** Whether users can change their display name. */
|
||||||
displayNameChangeAllowed: Scalars['Boolean']['output'];
|
displayNameChangeAllowed: Scalars['Boolean']['output'];
|
||||||
/** Whether user can change their email. */
|
/** Whether users can change their email. */
|
||||||
emailChangeAllowed: Scalars['Boolean']['output'];
|
emailChangeAllowed: Scalars['Boolean']['output'];
|
||||||
/** The ID of the site configuration. */
|
/** The ID of the site configuration. */
|
||||||
id: Scalars['ID']['output'];
|
id: Scalars['ID']['output'];
|
||||||
/** Imprint to show in the footer. */
|
/** Imprint to show in the footer. */
|
||||||
imprint?: Maybe<Scalars['String']['output']>;
|
imprint?: Maybe<Scalars['String']['output']>;
|
||||||
|
/** Whether passwords are enabled and users can change their own passwords. */
|
||||||
|
passwordChangeAllowed: Scalars['Boolean']['output'];
|
||||||
/** The URL to the privacy policy. */
|
/** The URL to the privacy policy. */
|
||||||
policyUri?: Maybe<Scalars['Url']['output']>;
|
policyUri?: Maybe<Scalars['Url']['output']>;
|
||||||
/** The server name of the homeserver. */
|
/** The server name of the homeserver. */
|
||||||
|
|||||||
@@ -2499,6 +2499,17 @@ export default {
|
|||||||
},
|
},
|
||||||
"args": []
|
"args": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "passwordChangeAllowed",
|
||||||
|
"type": {
|
||||||
|
"kind": "NON_NULL",
|
||||||
|
"ofType": {
|
||||||
|
"kind": "SCALAR",
|
||||||
|
"name": "Any"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"args": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "policyUri",
|
"name": "policyUri",
|
||||||
"type": {
|
"type": {
|
||||||
|
|||||||
Reference in New Issue
Block a user