text: const {User} = require('../models');
  const crypto = require('crypto');
  const hash = (input, encoding) => crypto.createHash('sha256').update(input).digest(encoding || 'base64');
  
  class AuthService {
      static login(email, password) {
          return User.findOne({
              email: email,
              password: hash(password),
              disabled: {$ne: true}
          }).lean().exec();
      }
  }
  
  module.exports = AuthService;
  