- Enhancements
- added Phauxth.Confirm.Base behaviour with
get_user/2
callback
- added Phauxth.Confirm.Base behaviour with
- Changes
- removed Comeonin dependency
- the password hashing library you use needs to implement the Comeonin behaviour
- removed Comeonin dependency
-
Enhancements
- updated to use Elixir 1.7
- Elixir versions 1.5 - 1.7 include various improvements to how behaviours are handled
- you now only have to define a
get_by(attrs)
function in the user_context module (get/1
is no longer needed)
- updated to use Elixir 1.7
-
Changes
- Removed Phauxth.Confirm.Login
- the Confirm.verify/3 and Login.verify/3 are now Confirm.verify/2 and Login.verify/2
- the user_context is now set in the config
- Phauxth.Confirm.verify with the
:pass_reset mode
is now Phauxth.Confirm.PassReset.verify - to use Phauxth.Remember, you need to define a
create_session(conn)
function in your app - Phauxth.Token is now a behaviour
- you will need to define a token module using this behaviour in your app if you are using Phauxth for token authentication, email confirmation or password resetting
- Enhancements
- Added default
user_context
to config- this makes the second argument to verify optional
- Added default
- Enhancements
- Added UserMessages module to make it easier to customize messages that are sent to the end user
- this can also be used to translate these messages (using gettext)
- Added UserMessages module to make it easier to customize messages that are sent to the end user
-
Enhancements
- Improvements to session management
- the session id in the Plug Session has a customizable max age
- session ids are stored in the database (as a map in the users table)
- if the session id is not found in the database, the user is not authenticated
- Improvements to session management
-
Changes
- Moved the installer to a separate (phauxth_installer) repository
-
Enhancements
- Added
backups
option to the installer- if a file already exists, the installer will now create a backup of the file by default
- running the installer with the
--no-backups
option will overwrite files
- Added
-
Changes
- replaced
configure_session(conn, drop: true)
withdelete_session(conn, :user_id)
- this preserves flash messages
- replaced
- Enhancements
- token implementation uses JSON instead of binary_to_term / term_to_binary
- Enhancements
- the endpoint value in the config (used by the Confirm module) is now overridable
- if necessary, you can set this value in the keyword options
- this is to make it easier to use Phauxth with umbrella apps
- key options are passed on to Phauxth.Token
- this applies to the Authenticate, Remember and Confirm modules
- minor updates to the installer templates - to make it more umbrella-friendly
- the endpoint value in the config (used by the Confirm module) is now overridable