Skip to content
  • 0 Votes
    1 Posts
    1k Views
    D

    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?

  • Can't log in

    General Discussion
    7
    0 Votes
    7 Posts
    3k Views
    NiLordN

    @a_5mith said:

    sudo apt-get install -y redis-server

    thanks for you all your help @a_5mith

    It was a problem installing Redis, nothing to do with NodeBB. I forgot to install tcl8.5 for a propper redis installation in debian.

    I hope this help for future related problem, you can see how proper install redis following these steps:
    https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis