Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when recaptcha configs are not present #786

Merged
merged 2 commits into from Aug 15, 2019

Conversation

Trion129
Copy link
Contributor

During setup of Client API if recaptcha is enabled but the settings are missing, error is logged and panic is raised.

Testing:
Enabled enable_registration_captcha, causes error.
Providing keys and api url passes the check and server starts.

@Cnly
Copy link
Contributor

Cnly commented Aug 15, 2019

A better place for these might be:

// check returns an error type containing all errors found within the config
// file.
func (config *Dendrite) check(monolithic bool) error {

Copy link
Contributor

@Cnly Cnly left a comment

Choose a reason for hiding this comment

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

lgtm

@Cnly Cnly merged commit bf5efbc into matrix-org:master Aug 15, 2019
@Cnly
Copy link
Contributor

Cnly commented Aug 15, 2019

Done! I merged it with a slight change to the title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants