src/js/actions/session.js
Function sessionLogin
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function sessionLogin (host, userName, password) {
let token;
return function (dispatch) {
dispatch({ type: SESSION_LOGIN, host: host, userName: userName });
configure({ host: host });
Function sessionLoginSuccess
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function sessionLoginSuccess (host, userName, token, role,
needPasswordReset) {