Add a tos getter

This commit is contained in:
RMidhunSuresh 2022-02-02 12:25:34 +05:30
parent ac7108b882
commit b482d478b4

View file

@ -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"];
}
}