Submodule jslib contains modified content diff --git a/jslib/angular/src/components/register.component.ts b/jslib/angular/src/components/register.component.ts index 16ccb6ea..52ef9b28 100644 --- a/jslib/angular/src/components/register.component.ts +++ b/jslib/angular/src/components/register.component.ts @@ -30,7 +30,7 @@ export class RegisterComponent extends CaptchaProtectedComponent implements OnIn formPromise: Promise; masterPasswordScore: number; referenceData: ReferenceEventRequest; - showTerms = true; + showTerms = false; acceptPolicies: boolean = false; protected successRoute = "login"; @@ -49,7 +49,7 @@ export class RegisterComponent extends CaptchaProtectedComponent implements OnIn protected logService: LogService ) { super(environmentService, i18nService, platformUtilsService); - this.showTerms = !platformUtilsService.isSelfHost(); + this.showTerms = false; } async ngOnInit() { @@ -87,6 +87,15 @@ export class RegisterComponent extends CaptchaProtectedComponent implements OnIn } async submit() { + if (typeof crypto.subtle === 'undefined') { + this.platformUtilsService.showToast( + "error", + "This browser requires HTTPS to use the web vault", + "Check the Vaultwarden wiki for details on how to enable it" + ); + return; + } + if (!this.acceptPolicies && this.showTerms) { this.platformUtilsService.showToast( "error", diff --git a/src/404.html b/src/404.html index 6cf5e363..54d11495 100644 --- a/src/404.html +++ b/src/404.html @@ -42,11 +42,10 @@

- You can return to the web vault, check our - status page or - contact us. + You can return to the web vault, or + contact us.

- + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 726a129e..35e62d1b 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -158,6 +158,10 @@ export class AppComponent implements OnDestroy, OnInit { } break; case "showToast": + if (typeof message.text === "string" && typeof crypto.subtle === 'undefined') { + message.title="This browser requires HTTPS to use the web vault"; + message.text="Check the Vaultwarden wiki for details on how to enable it"; + } this.showToast(message); break; case "setFullWidth": diff --git a/src/app/layouts/footer.component.html b/src/app/layouts/footer.component.html index 8601e123..22a0248b 100644 --- a/src/app/layouts/footer.component.html +++ b/src/app/layouts/footer.component.html @@ -1,6 +1,6 @@