diff options
author | 2024-02-11 19:15:20 +0530 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | 8fec21d6bccfa778c14c1714d6444312e36fc3f1 (patch) | |
tree | cab910ad5048eece2d229648f2c17000ac86a44d /providers/LegacyHasherProvider.ts | |
parent | updates (diff) | |
download | ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.tar.gz ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.tar.zst ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.zip |
Diffstat (limited to 'providers/LegacyHasherProvider.ts')
-rw-r--r-- | providers/LegacyHasherProvider.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/providers/LegacyHasherProvider.ts b/providers/LegacyHasherProvider.ts deleted file mode 100644 index b3ccd7f..0000000 --- a/providers/LegacyHasherProvider.ts +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | import { LegacyHashDriver } from './LegacyHashDriver.js'; | ||
2 | import { ApplicationService } from '@adonisjs/core/types'; | ||
3 | |||
4 | export default class LegacyHasherProvider { | ||
5 | constructor(protected app: ApplicationService) {} | ||
6 | |||
7 | public async boot() { | ||
8 | const Hash = this.app.container.use('Adonis/Core/Hash'); | ||
9 | |||
10 | Hash.extend('legacy', () => { | ||
11 | return new LegacyHashDriver(); | ||
12 | }); | ||
13 | } | ||
14 | } | ||