rasmuserik/mubackend

View on GitHub

Showing 1 of 1 total issue

Function loginHandler has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function loginHandler (provider) {
  return function (req, res) {
    passport.authenticate(provider)(req, res, function (profile) {
      if (profile.provider === 'Wordpress') profile.id = profile._json.ID;
      var user = encodeURIComponent(profile.provider + '_' + profile.id);
Severity: Minor
Found in mubackend.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language