mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Add a tos getter
This commit is contained in:
parent
ac7108b882
commit
b482d478b4
@ -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"];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user