server/utilities/services/UserService.js
Function validateUserLogin
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static validateUserLogin(email, userpassword) {
return new Promise((resolve, reject) => {
this.findUserByEmail(email)
.then((res) => {
const { password, id, is_admin } = res.rows[0];