mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
12 lines
324 B
JavaScript
12 lines
324 B
JavaScript
|
import { getInternalError } from '@verdaccio/commons-api';
|
||
|
|
||
|
module.exports = function ( ) {
|
||
|
return {
|
||
|
authenticate( user, pass, callback ) {
|
||
|
// we return an 500 error, the second argument must be false.
|
||
|
// https://verdaccio.org/docs/en/dev-plugins#onerror
|
||
|
callback(getInternalError(), false);
|
||
|
}
|
||
|
};
|
||
|
};
|