mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00: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:
@@ -83,7 +83,11 @@ export class PreferencesComponent implements OnInit {
|
|||||||
|
|
||||||
async submit() {
|
async submit() {
|
||||||
if (!this.vaultTimeout.valid) {
|
if (!this.vaultTimeout.valid) {
|
||||||
this.platformUtilsService.showToast("error", null, this.i18nService.t("vaultTimeoutToLarge"));
|
this.platformUtilsService.showToast(
|
||||||
|
"error",
|
||||||
|
null,
|
||||||
|
this.i18nService.t("vaultTimeoutRangeError")
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,5 +41,9 @@
|
|||||||
<small>{{ "minutes" | i18n }}</small>
|
<small>{{ "minutes" | i18n }}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<small *ngIf="!exceedsMinimumTimout" class="tw-text-danger">
|
||||||
|
<i class="bwi bwi-error" aria-hidden="true"></i> {{ "vaultCustomTimeoutMinimum" | i18n }}
|
||||||
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4431,6 +4431,12 @@
|
|||||||
"vaultTimeoutToLarge": {
|
"vaultTimeoutToLarge": {
|
||||||
"message": "Your vault timeout exceeds the restriction set by your organization."
|
"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": {
|
"disablePersonalVaultExport": {
|
||||||
"message": "Disable Personal Vault Export"
|
"message": "Disable Personal Vault Export"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user