mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 14:00:51 +00:00
10 lines
No EOL
213 B
CoffeeScript
10 lines
No EOL
213 B
CoffeeScript
UserDeleter = require("./UserDeleter")
|
|
|
|
module.exports =
|
|
|
|
deleteUser: (req, res)->
|
|
user_id = req.session.user._id
|
|
UserDeleter.deleteUser user_id, (err)->
|
|
if !err?
|
|
req.session.destroy()
|
|
res.send(200) |