- Fixed bug in router filters with Phoenix 1.4.7
- Prevent browser cache of
Pow.Phoenix.SessionController.new/2
,Pow.Phoenix.RegistrationController.new/2
andPowInvitation.Phoenix.InvitationController.edit/2
by setting "Cache-Control" header unless it already has been customized - All links in docs generated with
mix docs
and on hexdocs.pm now works - Generated docs now uses lower case file name except for
README
,CONTRIBUTING
andCHANGELOG
- Removed duplicate call for
Pow.Plug.Session.delete/2
inPow.Plug.Sesssion.create/3
Pow.Phoenix.Router
will now only add specific routes if there is no matching route already defined- Added
Pow.Plug.get_plug/1
and instead of:mod
,:plug
is used in config Pow.Ecto.Context.authenticate/2
now returns nil if user id or password is nil
- Fixed bug with exception raised in
Pow.Ecto.Schema.normalize_user_id_field_value/1
when callingPow.Ecto.Context.get_by/2
with a non binary user id - Fixed bug with exception raised in
Pow.Ecto.Schema.normalize_user_id_field_value/1
when callingPow.Ecto.Context.authenticate/2
with a non binary user id
- Deprecated
Pow.Plug.get_mod/1
- Removed call to
Pow.Ecto.Context.repo/1
- Added support for layout in mails with
Pow.Phoenix.Mailer.Mail
by settingconn.private[:pow_mailer_layout]
same way as the Phoenix layout withconn.private[:phoenix_layout]
- Added
:prefix
repo opts support to use in multitenant apps - Removed
@changeset.data.__struct__.pow_user_id_field()
in template in favor of usingPow.Ecto.Schema.user_id_field/1
- Fixed bug in
Pow.Ecto.Schema.Changeset.current_password_changeset/3
where an exception would be thrown if the virtual:current_password
field of the user struct was set and either the:current_password
change was blank or identical
- Deprecated
Mix.Pow.Ecto.Migration.create_migration_files/3
and moved it toMix.Pow.Ecto.Migration.create_migration_file/3
- Deprecated
Pow.Ecto.Context.repo/1
and moved it toPow.Config.repo!/1
- Deprecated
Pow.Ecto.Context.user_schema_mod/1
and moved it toPow.Config.user!/1
- Fixed bug with Phoenix 1.4.4 scoped routes
- Fixed bug where custom layout setting raised exception in
Pow.Phoenix.ViewHelpers.layout/1
- Prevent users from changing their email to one already taken when the PowEmailConfirmation extension has been enabled
- Added
extension_messages/1
to extension controllers and callbacks - Improved feedback for when no templates are generated for an extension with
mix pow.extension.phoenix.gen.templates
andmix pow.extension.phoenix.mailer.gen.templates
tasks - Error flash is no longer overridden in
Pow.Phoenix.PlugErrorHandler
if the error message is nil - Fixed bug in the migration generator where
references/2
wasn't called with options - Support any
:plug
version below2.0.0
- Deprecated
Pow.Extension.Ecto.Context.Base
- Added
PowInvitation
to themix pow.extension.phoenix.gen.templates
andmix pow.extension.phoenix.mailer.gen.templates
tasks - Fixed issue in umbrella projects where extensions wasn't found in environment configuration
- Fixed so
:namespace
environment config can be used as web app module name - Shell instructions will only be printed if the configuration is missing
- Now requires that
:ecto
or:phoenix
are included in the dependency list for the app to run respective mix tasks - Deprecated
Mix.Pow.context_app/0
- Deprecated
Mix.Pow.ensure_dep!/3
- Deprecated
Mix.Pow.context_base/1
- Added
PowInvitation
extension - Added support in
Pow.Ecto.Schema
for Ecto associations fields - Added support for adding custom methods with
Pow.Extension.Ecto.Schema
through__using__/1
macro in extension ecto schema module - Help information raised with invalid schema arguments for
pow.install
,pow.ecto.install
,pow.ecto.gen.migration
, andpow.ecto.gen.schema
mix tasks PowEmailConfirmation
now redirects unconfirmed users toafter_registration_path/1
orafter_sign_in_path/1
rather thanpow_session_path(conn, :new)
- Correct shell instructions for
mix pow.install
task with custom schema - Fixed bug in
Pow.Extension.Phoenix.Router.Base
andPow.Extension.Phoenix.Messages
where the full extension name wasn't used to namespace methods
- Deprecated
Pow.Extension.Config.underscore_extension/1
- Deprecated
PowResetPassword.Ecto.Context.password_changeset/2
- Deprecated
Pow.Ecto.Schema.filter_new_fields/2
- Deprecated
:messages_backend_fallback
setting for extension controllers - Removed deprecated macro
router_helpers/1
inPow.Phoenix.Controller
- Added flash error message about e-mail confirmation for when user changes e-mail with PowEmailConfirmation enabled
- Added
new_password_changeset/3
andconfirm_password_changeset/3
toPow.Ecto.Schema.Changeset
- Redis cache store backend guide
- Correct shell instructions for
mix pow.phoenix.gen.templates
task - Only load environment config in
Pow.Config.get/3
when no key is set in the provided config - Fixed issue in
Pow.Store.Backend.MnesiaCache.keys/1
andPow.Store.Backend.EtsCache.keys/1
so they now return keys without namespace Pow.Store.Backend.MnesiaCache.put/3
now raises an error if TTL is not provided
PowResetPassword.Plug.reset_password_token/1
has been removed
pow.extension.ecto.gen.migrations
mix task will output warning when a migration file won't be generated for any particular extension- Leading and trailing whitespace is removed from the user id field value (in addition to forced lower case)
- An exception is raised when
pow_routes/0
orpow_extension_routes/0
are used inside router scopes with aliases - Mail view templates assigns now has
[user: user, conn: conn]
along with the template specific assigns - Mail view subject methods now gets the same assigns passed as mail view template assigns instead of only
[conn: conn]
- Added
pow_registration_routes/0
,pow_session_routes/0
andpow_scope/1
macros to the router module - Added guide on how to disable registration
- Phoenix 1.4 support
- Ecto 3.0 support