From 07e7ff15a1eb8a0d37b5da921102f6277d911ac9 Mon Sep 17 00:00:00 2001 From: Arthur Danjou Date: Fri, 18 Jun 2021 19:26:21 +0200 Subject: [PATCH] Trying to fix hash --- config/hash.ts | 18 ------------------ contracts/hash.ts | 4 ---- database/seeders/User.ts | 12 ------------ package.json | 2 +- providers/AppProvider.ts | 1 - 5 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 database/seeders/User.ts diff --git a/config/hash.ts b/config/hash.ts index 77b143d..74326f2 100644 --- a/config/hash.ts +++ b/config/hash.ts @@ -50,24 +50,6 @@ const hashConfig: HashConfig = { parallelism: 1, saltSize: 16, }, - - /* - |-------------------------------------------------------------------------- - | Bcrypt - |-------------------------------------------------------------------------- - | - | Bcrypt mapping uses the `bcrypt` driver to hash values. - | - | Make sure you install the underlying dependency for this driver to work. - | https://www.npmjs.com/package/phc-bcrypt. - | - | npm install phc-bcrypt - | - */ - bcrypt: { - driver: 'bcrypt', - rounds: 10, - }, }, } diff --git a/contracts/hash.ts b/contracts/hash.ts index af2da3b..c9b68b1 100644 --- a/contracts/hash.ts +++ b/contracts/hash.ts @@ -8,10 +8,6 @@ declare module '@ioc:Adonis/Core/Hash' { interface HashersList { - bcrypt: { - config: BcryptConfig, - implementation: BcryptContract, - }, argon: { config: ArgonConfig, implementation: ArgonContract, diff --git a/database/seeders/User.ts b/database/seeders/User.ts deleted file mode 100644 index 959ffe7..0000000 --- a/database/seeders/User.ts +++ /dev/null @@ -1,12 +0,0 @@ -import BaseSeeder from '@ioc:Adonis/Lucid/Seeder' -import User from "App/Models/User"; - -export default class UserSeeder extends BaseSeeder { - public async run () { - // Write your database queries inside the run method - await User.create({ - email: 'admin@linkyjs.dev', - password: 'password' - }) - } -} diff --git a/package.json b/package.json index 5159056..4d2dd9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@linkyjs/core", - "version": "1.0.7", + "version": "1.0.8", "description": "URL Shortener for Developers 💻", "main": "start/kernel.ts", "repository": { diff --git a/providers/AppProvider.ts b/providers/AppProvider.ts index d8bb06a..9d08669 100644 --- a/providers/AppProvider.ts +++ b/providers/AppProvider.ts @@ -12,7 +12,6 @@ export default class AppProvider { } public async boot () { - } public async ready () {