src/router/passwords/edit.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 15
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 1
c 1
b 0
f 0
nc 1
mnd 0
bc 1
fnc 1
dl 0
loc 15
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A edit.js ➔ ??? 0 10 1
1
'use strict'
2
3
import passport from 'passport'
4
import { passwords } from '../../controllers'
5
6
export default function (server) {
7
  server.get({
8
    name: 'password//change',
9
    path: '/change_password'
10
  },
11
  passport.authenticate('jwtEmptyParamUrlQueryStrategy', {
12
    session: false
13
  }),
14
  passwords.edit)
15
}
16