Trying to fix hash

This commit is contained in:
2021-06-18 19:26:21 +02:00
parent 086f8251ed
commit 07e7ff15a1
5 changed files with 1 additions and 36 deletions

View File

@@ -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,
},
},
}

View File

@@ -8,10 +8,6 @@
declare module '@ioc:Adonis/Core/Hash' {
interface HashersList {
bcrypt: {
config: BcryptConfig,
implementation: BcryptContract,
},
argon: {
config: ArgonConfig,
implementation: ArgonContract,

View File

@@ -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'
})
}
}

View File

@@ -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": {

View File

@@ -12,7 +12,6 @@ export default class AppProvider {
}
public async boot () {
}
public async ready () {