mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
[SM-240] Add max length limit on SM strings (#5823)
* Add max length limit on SM strings * remove HTML attributes * remove from project
This commit is contained in:
@@ -38,17 +38,17 @@ export interface SecretOperation {
|
||||
export class SecretDialogComponent implements OnInit {
|
||||
protected formGroup = new FormGroup({
|
||||
name: new FormControl("", {
|
||||
validators: [Validators.required, BitValidators.trimValidator],
|
||||
validators: [Validators.required, Validators.maxLength(500), BitValidators.trimValidator],
|
||||
updateOn: "submit",
|
||||
}),
|
||||
value: new FormControl("", [Validators.required]),
|
||||
value: new FormControl("", [Validators.required, Validators.maxLength(3500)]),
|
||||
notes: new FormControl("", {
|
||||
validators: [BitValidators.trimValidator],
|
||||
validators: [Validators.maxLength(7000), BitValidators.trimValidator],
|
||||
updateOn: "submit",
|
||||
}),
|
||||
project: new FormControl("", [Validators.required]),
|
||||
newProjectName: new FormControl("", {
|
||||
validators: [BitValidators.trimValidator],
|
||||
validators: [Validators.maxLength(500), BitValidators.trimValidator],
|
||||
updateOn: "submit",
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user