1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-27 04:03:00 +02:00

[PS-250] Prevent timeouts less than 1 minute (#2836)

* migrated PR to mono repo

* revert and modify file

* revert and modify file
This commit is contained in:
Gbubemi Smith 2022-06-08 05:41:27 +01:00 committed by GitHub
parent 1d533f801d
commit 93e8c8b25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View File

@ -83,7 +83,11 @@ export class PreferencesComponent implements OnInit {
async submit() {
if (!this.vaultTimeout.valid) {
this.platformUtilsService.showToast("error", null, this.i18nService.t("vaultTimeoutToLarge"));
this.platformUtilsService.showToast(
"error",
null,
this.i18nService.t("vaultTimeoutRangeError")
);
return;
}

View File

@ -41,5 +41,9 @@
<small>{{ "minutes" | i18n }}</small>
</div>
</div>
<small *ngIf="!exceedsMinimumTimout" class="tw-text-danger">
<i class="bwi bwi-error" aria-hidden="true"></i> {{ "vaultCustomTimeoutMinimum" | i18n }}
</small>
</div>
</div>

View File

@ -4431,6 +4431,12 @@
"vaultTimeoutToLarge": {
"message": "Your vault timeout exceeds the restriction set by your organization."
},
"vaultCustomTimeoutMinimum": {
"message": "Minimum custom timeout is 1 minute."
},
"vaultTimeoutRangeError": {
"message": "Vault Timeout is not within allowed range."
},
"disablePersonalVaultExport": {
"message": "Disable Personal Vault Export"
},
@ -5070,4 +5076,4 @@
"apiAccessToken": {
"message": "API Access Token"
}
}
}