How redirect on user page


  • GNU/Linux

    Suppose to be in my controller.js and I need to redirect user on the user page.

    ...
    var username=user//it's the username
    res.render('/user/'+username);

    but I obtain an error :

    Object #<IncomingMessage> has no method 'csrfToken'

    "/vagrant/nodebb/public/templates"

    Anyone can help me?



Looks like your connection to NodeBB was lost, please wait while we try to reconnect.