Hr.JWTController

The default implementation of JWTController. If you want to override it, either direct your routes to your own implementation (if you want to just override a couple of actions), or implement YourApp.HrJWTController with use Hr.BaseJWTController.

Summary

Functions

Callback implementation for c:Plug.call/2

Confirms the email for the user

Reset the user's password

If the email exists, send a reset link

Check if the submitted credentials are valid, if they are, create a session

Create a new user if the email address isn't already taken

Callback implementation for c:Plug.init/1

Functions

action(conn, opts)
call(conn, action)

Callback implementation for c:Plug.call/2.

confirmation(conn, map)

Confirms the email for the user

create_password_reset(conn, map)

Reset the user's password

create_password_reset_request(conn, map)

If the email exists, send a reset link

create_refreshed_token(conn, map)
create_session(conn, map)

Check if the submitted credentials are valid, if they are, create a session

create_signup(conn, data)

Create a new user if the email address isn't already taken.

init(action)

Callback implementation for c:Plug.init/1.