entrance v0.1.0 Entrance.Login.Session

Link to this section Summary

Functions

Returns the current user or nil based on :user_id in the session.

Logs in given user by setting :user_id on the session of passed in conn.

Logs out current user.

Link to this section Functions

Link to this function

get_current_user(conn)

Returns the current user or nil based on :user_id in the session.

Link to this function

login(conn, user)

Logs in given user by setting :user_id on the session of passed in conn.

Logs out current user.