* 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[])
| 544 | * session.flashExcept(['password', '_csrf']) |
| 545 | */ |
| 546 | flashExcept(keys: string[]): void { |
| 547 | this.#getFlashStore('write').set( |
| 548 | 'input', |
| 549 | lodash.omitBy(this.#ctx.request.original(), (value, key) => { |
| 550 | if (keys.includes(key)) { |
| 551 | return true |
| 552 | } |
| 553 | return !this.shouldFlashValue(value) |
| 554 | }) |
| 555 | ) |
| 556 | } |
| 557 | |
| 558 | /** |
| 559 | * Flashes form input data (only some keys) to the flash messages store |
no test coverage detected