overleaf/services/web/app/coffee/Features/Institutions/InstitutionsController.coffee

8 lines
277 B
CoffeeScript
Raw Normal View History

UserGetter = require("../User/UserGetter")
module.exports = InstitutionsController =
confirmDomain: (req, res, next) ->
hostname = req.body.hostname
UserGetter.getUsersByHostname hostname, {_id:1, emails:1}, (error, users) ->
res.json {hostname: hostname, wub: users}