mirror of
https://github.com/gophish/gophish
synced 2024-11-14 16:27:23 +00:00
bb7de8df3e
This PR adds the initial work to implement a password policy as defined in #1538. Specifically, this implements the following * Rate limiting for the login handler * Implementing the ability for system admins to require a user to reset their password * Implementing a password policy that requires passwords to be a minimum of 8 characters * Removes the default password (gophish) for admin users to instead have the password randomly generated when Gophish first starts up * Adds a password strength meter when choosing a new password Fixes #1538
23 lines
No EOL
541 B
JavaScript
23 lines
No EOL
541 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
context: path.resolve(__dirname, 'static', 'js', 'src', 'app'),
|
|
entry: {
|
|
passwords: './passwords',
|
|
users: './users',
|
|
webhooks: './webhooks',
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'static', 'js', 'dist', 'app'),
|
|
filename: '[name].min.js'
|
|
},
|
|
module: {
|
|
rules: [{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: "babel-loader"
|
|
}
|
|
}]
|
|
}
|
|
} |