Hr.FormController
The default implementation of FormController. 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.HrFormController
with use Hr.BaseFormController
.
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
Destroy the session
Callback implementation for c:Plug.init/1
capture the requested new password from the user
Captures the email address to send a password reset link to
Display the login view and post the form to the next function
Display the signup form and post to the next function
redirect the user to the oauth provider's site so they can authenticate
Try to look a user up by identity, if none exists, create one and log them in
Functions
Check if the submitted credentials are valid, if they are, create a session