Skip to content

Commit

Permalink
refactor(users): remove deprecated endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-gs committed Nov 22, 2023
1 parent f456b3c commit ed984ef
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions lib/server/routes/users.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

const assert = require('assert');
const Router = require('./index');
const middleware = require('storj-service-middleware');
const rawbody = middleware.rawbody;
Expand Down Expand Up @@ -479,34 +478,6 @@ UsersRouter.prototype.confirmDestroyUser = function (req, res, next) {
});
};

/**
* Get user activation info
* @param {http.IncomingMessage} req
* @param {http.ServerResponse} res
* @param {Function} next
*/
UsersRouter.prototype.isActivated = function (req, res, next) {
const User = this.storage.models.User;

log.debug('Getting user activation info for %s', req.headers['email']);

User.findOne({ email: req.headers['email'] }, function (err, user) {
if (err) {
return next(new errors.InternalError(err.message));
}

if (!user) {
return next(new errors.BadRequestError('User not found'));
}

// Send activated info
res.status(200).send({
activated: user.activated,
uuid: user.uuid,
});
});
};

UsersRouter.prototype.confirmDestroyUserStripe = function (req, res, next) {
const self = this;
const stripeUtils = require('../stripeService');
Expand Down

0 comments on commit ed984ef

Please sign in to comment.