mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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) |