mirror of https://github.com/requarks/wiki
parent
e9e93eff42
commit
8f94449426
@ -1,16 +1,16 @@
|
||||
/* global WIKI */
|
||||
const bcrypt = require('bcryptjs-then')
|
||||
import bcrypt from 'bcryptjs-then'
|
||||
|
||||
// ------------------------------------
|
||||
// Local Account
|
||||
// ------------------------------------
|
||||
|
||||
const LocalStrategy = require('passport-local').Strategy
|
||||
import { Strategy } from 'passport-local'
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
init (passport, conf) {
|
||||
passport.use(conf.key,
|
||||
new LocalStrategy({
|
||||
new Strategy({
|
||||
usernameField: 'email',
|
||||
passwordField: 'password'
|
||||
}, async (uEmail, uPassword, done) => {
|
@ -1,6 +1,6 @@
|
||||
const cmdExists = require('command-exists')
|
||||
import cmdExists from 'command-exists'
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
key: 'git',
|
||||
title: 'Git',
|
||||
description: 'Distributed version control system. Required for the Git storage module.',
|
@ -1,7 +1,7 @@
|
||||
const cmdExists = require('command-exists')
|
||||
const os = require('os')
|
||||
import cmdExists from 'command-exists'
|
||||
import os from 'node:os'
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
key: 'pandoc',
|
||||
title: 'Pandoc',
|
||||
description: 'Convert between markup formats. Required for converting from other formats such as MediaWiki, AsciiDoc, Textile and other wikis.',
|
@ -1,6 +1,6 @@
|
||||
const fs = require('fs-extra')
|
||||
import fs from 'node:fs/promises'
|
||||
|
||||
module.exports = {
|
||||
export default {
|
||||
async activated () { },
|
||||
async deactivated () { },
|
||||
async init () { },
|
Loading…
Reference in new issue