0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 09:03:45 +01:00

Verify a shared secret is set in create-account (#2645)

This commit is contained in:
Till 2022-08-16 13:21:22 +02:00 committed by GitHub
parent 5424b88f30
commit 804653e551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,10 @@ func main() {
logrus.Fatalf("The reset-password flag has been replaced by the POST /_dendrite/admin/resetPassword/{localpart} admin API.")
}
if cfg.ClientAPI.RegistrationSharedSecret == "" {
logrus.Fatalln("Shared secret registration is not enabled, enable it by setting a shared secret in the config: 'client_api.registration_shared_secret'")
}
if *username == "" {
flag.Usage()
os.Exit(1)