Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COOk if I query it during the loginPost function i.e. nesting an if statement that states if the credentials are correct, do I query the email used to login or is there a session ID created somehow that has to be queried? Also, how does the userProfile know about the query during the loginPost to be able to render the information onto the page? I actually do not understand that part of the sessions, of how to connect it to a user? All I have up for the session code will be updated in the question.
      singulars
    2. COI do not not how your data are structured. However, if you can check the credentials from the DB, it means you can also get information about the user, for example the user_id. And use that id for the subsequent queries. For the session ID, I do not know if you have to manage it by yourself or if mongo has a mechanism for that. If you still have question, do not hesitate, I will answer the one that I can answer.
      singulars
    3. COOk, that makes sense I guess the confusing part is whether or not I need to use the session ID at all, instead of querying based on the credentials originally posted. If you know what I am suppose to do with the session ID if anything? Otherwise I am assuming as the login form is posted that I can query the body aka post of the login form from the db to draw out the user's profile. I just do not know how to go about querying for a person if I a user logs in is redirected to another page, how do I pull his info then, I am assuming that part has to do with the session ID, which I need help on.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload