mirror of
https://github.com/ArthurDanjou/artdanj-shortener.git
synced 2026-01-14 15:54:08 +01:00
Trying to fix hash
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -8,10 +8,6 @@
|
||||
declare module '@ioc:Adonis/Core/Hash' {
|
||||
|
||||
interface HashersList {
|
||||
bcrypt: {
|
||||
config: BcryptConfig,
|
||||
implementation: BcryptContract,
|
||||
},
|
||||
argon: {
|
||||
config: ArgonConfig,
|
||||
implementation: ArgonContract,
|
||||
|
||||
@@ -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'
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -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": {
|
||||
|
||||
@@ -12,7 +12,6 @@ export default class AppProvider {
|
||||
}
|
||||
|
||||
public async boot () {
|
||||
|
||||
}
|
||||
|
||||
public async ready () {
|
||||
|
||||
Reference in New Issue
Block a user