* Flashes form input data (except some keys) to the flash messages store * * @param keys - Array of keys to exclude from flashing * * @example * session.flashExcept(['password', '_csrf'])
(keys: string[])
| 505 | * session.flashExcept(['password', '_csrf']) |
| 506 | */ |
| 507 | flashExcept(keys: string[]): void { |
| 508 | this.#getFlashStore('write').set( |
| 509 | 'input', |
| 510 | lodash.omitBy(this.#ctx.request.original(), (value, key) => { |
| 511 | if (keys.includes(key)) { |
| 512 | return true |
| 513 | } |
| 514 | return !this.shouldFlashValue(value) |
| 515 | }) |
| 516 | ) |
| 517 | } |
| 518 | |
| 519 | /** |
| 520 | * Flashes form input data (only some keys) to the flash messages store |
no test coverage detected