diff --git a/src/matrix/registration/stages/TermsAuth.ts b/src/matrix/registration/stages/TermsAuth.ts index 0114d27d..7d1647b9 100644 --- a/src/matrix/registration/stages/TermsAuth.ts +++ b/src/matrix/registration/stages/TermsAuth.ts @@ -31,9 +31,11 @@ export class TermsAuth extends BaseRegistrationStage { return "m.login.terms"; } - // todo: add better parsing logic here, also remember that server admins can - // require any sort documents here, even those that are not toc/privacy policies get privacyPolicy() { return this._params?.policies["privacy_policy"]; } + + get termsOfService() { + return this._params?.policies["terms_of_service"]; + } }