Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

graphql: Expose CAPTCHA config and whether password registration is enabled #3017

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

reivilibre
Copy link
Contributor

Part of #172 as I am working towards converting the registration form to React.

@reivilibre reivilibre requested a review from sandhose July 26, 2024 11:15
Copy link

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6e1e25d
Status: ✅  Deploy successful!
Preview URL: https://4ac3967d.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://rei-be-reg-siteconfig.matrix-authentication-service-docs.pages.dev

View logs

Comment on lines +73 to +79
/// Which Captcha service is being used
#[derive(Enum, Debug, Clone, Copy, PartialEq, Eq)]
pub enum CaptchaService {
RecaptchaV2,
CloudflareTurnstile,
HCaptcha,
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wondered whether this should be an enum with the site_key in each variant, so that we can extend later with provider-specific options and in the frontend we'd have to match on the __typename instead

but because this will never be actual public API, that won't be hard to change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had the same line of thought

@reivilibre reivilibre merged commit 8737d6f into main Jul 26, 2024
16 checks passed
@reivilibre reivilibre deleted the rei/be_reg_siteconfig branch July 26, 2024 12:03
@sandhose sandhose added the A-GraphQL Changes to the GraphQL API label Jul 29, 2024
@sandhose sandhose mentioned this pull request Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-GraphQL Changes to the GraphQL API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants