- added own provider for drive methods
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m13s
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m13s
- renamed middleware Role and Can to role_middleware and can_middleware - added some typing for inertia vue3 components - npm updates
This commit is contained in:
parent
cb51a4136f
commit
296c8fd46e
67 changed files with 2515 additions and 1913 deletions
|
@ -11,8 +11,7 @@ export type PbkdfConfig = {
|
|||
rounds: number;
|
||||
saltSize?: number;
|
||||
version?: number;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const saltRounds = 10;
|
||||
export class LaravelDriver implements HashDriverContract {
|
||||
|
@ -24,8 +23,8 @@ export class LaravelDriver implements HashDriverContract {
|
|||
this.config = {
|
||||
rounds: 10,
|
||||
saltSize: 16,
|
||||
version: 98,
|
||||
...config
|
||||
version: 98,
|
||||
...config,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -135,9 +134,8 @@ export class LaravelDriver implements HashDriverContract {
|
|||
* Factory function to reference the driver
|
||||
* inside the config file.
|
||||
*/
|
||||
export function laravelDriver (config: PbkdfConfig): ManagerDriverFactory {
|
||||
export function laravelDriver(config: PbkdfConfig): ManagerDriverFactory {
|
||||
return () => {
|
||||
return new LaravelDriver(config)
|
||||
}
|
||||
}
|
||||
|
||||
return new LaravelDriver(config);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue