mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-22 02:21:34 +01: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:
parent
1d533f801d
commit
93e8c8b25a
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user