Have you tried calling AJAX directly? Does it work? It may be that your AJAX submission does not call JS. I had this problem before and there was no response when I submitted it. If AJAX is correct, just print the value of $user and see.
replyHow to call js through ajax? I downloaded the source code of the video, and the same problem occurred when logging in. There was no response when clicking.
Have you tried calling AJAX directly? Does it work? It may be that your AJAX submission does not call JS. I had this problem before and there was no response when I submitted it. If AJAX is correct, just print the value of $user and see.