JS how to hide registration links after user authorization?

  • 0
    Can you please tell me, I need to make it so that the user after registration appears an inscription that he is authorized, and this inscription should replace the registration and login links, can you please tell me how to implement this using JavaScript?
    JavaScript Anonymous, Sep 9, 2020

  • 1 Answers
  • 0
    You request the authorization state on the server via ajax and, based on the response result, draw the version of the interface that corresponds to each state. How to draw and where to request this state from the server depends specifically on the implementation of the frontend and backend parts of the site.
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!