Releases: pow-auth/pow
v1.0.29
This version is updated to work with Phoenix 1.7, in particular using the new template components structure. All views have been removed, and Pow no longer requires the phoenix_view dependency.
Now requires Elixir 1.12+. #691
Enhancements
- [
Pow.Phoenix.Mailer.Mail] Revamped to conform to template component structure of Phoenix 1.7 #691 - [
Pow.Phoenix.Template] Now renders Tailwind based template components on Phoenix 1.7 #691
Deprecations
- [
Pow.Phoenix.Mailer.Mail] Deprecated:pow_mailer_layoutin favor of:pow_mailer_layouts#691 - [
Mix.Pow.Phoenix.Mailer] RemovedMix.Pow.Phoenix.Mailer.create_view_file/5#691 - [
Mix.Pow.Phoenix.Mailer] RemovedMix.Pow.Phoenix.Mailer.create_templates/4#691 - [
Mix.Pow.Phoenix] RemovedMix.Pow.Phoenix.create_view_file/4#691
v.1.0.28
Enhancements
- [
Mix.Pow]Mix.Pow.parse_options/3now merges option defaults with:otp_app, :generatorsconfiguration #668 - [
Mix.Pow.Mix.Tasks.Pow.Phoenix.Mailer.Gen.Templates] Now injectsconfig/config.exsandWEB_PATH/WEB_APP.ex#674 - [
Mix.Pow.Mix.Tasks.Pow.Phoenix.Gen.Templates] Now injectsconfig/config.exs#674 - [
Mix.Tasks.Pow.Phoenix.Install] Now injectsconfig/config.exs,WEB_PATH/endpoint.ex, andWEB_PATH/router.ex#674 - [
Pow.Phoenix.Router] Updated to support Phoenix 1.7 breaking changes #687 - [
Pow.Phoenix.Template] Updated to support Phoenix 1.7 verified routes #687 - [
Pow.Phoenix.Routes] Updated to support Phoenix 1.7 verified routes #687 - [
Pow.Phoenix.ViewHelpers] Updated to handle Phoenix 1.7 components layout #687
Bug fixes
:phoenixremoved from the compilers #684
Documentation
v1.0.27
v1.0.26
v1.0.25
Now supports Phoenix 1.6.x, and phoenix_html 3.x.x. #646 #649
Enhancements
- [
Pow.Ecto.Schema.Fields] The:password_hash,:current_password, and:passwordfields now haveredact: trueoption set #637 - [
Pow.Phoenix.Controller]Pow.Phoenix.Controller.action/3now properly handles{:halt, conn}returned in thebefore_processcallback #632 - [
Pow.Store.Backend.EtsCache] Now does synchronous writes unlesswrites: :asyncis passed in config options #650 - [
Pow.Store.Backend.MnesiaCache] Now does synchronous writes unlesswrites: :asyncis passed in config options #650
Bug fixes
- [
Pow.Operations]Pow.Operations.fetch_primary_key_values/2now ensures that module exists and is loaded before deriving primary keys #643
Documentation
- Updated redis guide to use synchronous writes unless
writes: :asyncis passed in config options #650 - Updated redis guide to use optimized lookups with sorted keys #564
v1.0.24
Enhancements
- [
Pow.Store.Backend.MnesiaCache] Now acceptsextra_db_nodes: {module, function, arguments}to fetch nodes when MnesiaCache starts up #615 - [
PowEmailConfirmation.Phoenix.Messages] AddedPowEmailConfirmation.Phoenix.Messages.invalid_token/1#618 - [
Pow.Store.CredentialsCache] Now outputs an IO warning when a:ttllonger than 30 minutes is used #619
Bug fixes
- [
Pow.Store.Backend.MnesiaCache] Now handles initialization errors #616
v1.0.23
Enhancements
- [
Pow.Ecto.Context] No longer automatically reloads the struct after insert or update #600 - [
PowInvitation.Ecto.Schema] AddedPowInvitation.Ecto.Schema.invitation_token_changeset/1#596 - [
PowInvitation.Ecto.Schema] AddedPowInvitation.Ecto.Schema.invited_by_changeset/2#596 - [
Pow.Ecto.Schema.Password.Pbkdf2] Now uses:crypto.mac/4if available to support OTP 24 #602 - [
PowEmailConfirmation.Phoenix.ControllerCallbacks] Now returns:infoinstead of:error#612
Bug fixes
- [
Pow.Store.Backend.MnesiaCache] No longer triggers Elixir 1.11 dependency warnings #606
v1.0.22
This release introduces a deprecation for the default API guide implementation. Please check migration section below.
Enhancements
- [
PowPersistentSession.Plug.Cookie] Now stores the user struct instead of clauses #392 - [
PowPersistentSession.Plug.Base] Now includes:pow_configin the store config #392 - [
PowResetPassword.Plug] Now includes:pow_configin the store config #392 - [
Pow.Plug.Base] Now includes:pow_configin the store config #392 - [
Pow.Operations] AddedPow.Operations.reload/2to reload structs #392 - [
PowPersistentSession.Store.PersistentSessionCache] UpdatePowPersistentSession.Store.PersistentSessionCache.get/2to reload the user usingPow.Operations.reload/2#392 - [
Pow.Store.CredentialsCache] Now supportreload: trueconfiguration so once fetched from the cache the user object will be reloaded through the context module #392
Documentation
Migration
If you've used an API setup for previous version, you'll see the warning PowPersistentSession.Store.PersistentSessionCache.get/2 call without `:pow_config` in second argument is deprecated, refer to the API guide.. It's recommended to replace your APIAuthPlug with the updated version in the API guide.
The larger refactor of cache setup in Pow v1.0.22 means that user struct is always expected to be passed in and returned by the stores, so it is no longer necessary to load the user in the API plug. The PowPersistentSession.Store.PersistentSessionCache has fallback logic to handle the deprecated clauses keyword list, and will load the user correctly.
v1.0.21
Enhancements
- [
Pow.Plug.Base] Will now use the existing:pow_configin theconnwhen no plug options has been set #514 - [
PowInvitation.Phoenix.InvitationController] Fixed bug where user was incorrectly redirected to the show action with unsigned token when user struct has no e-mail #535 - [
Pow.Ecto.Schema] Now only emits warning for primitive Ecto types #541
Bug fixes
- [
PowEmailConfirmation.Ecto.Schema]PowEmailConfirmation.Ecto.Schema.changeset/3no longer sets the email to the unconfirmed email when the same email change is set twice #515 - [
Pow.Extension.Phoenix.Messages] Fixed fallback message dializer warning #520 - [
Pow.Ecto.Context] Fixed bug where the macro didn't add:users_contextto the Pow config in the module resulting inPow.Ecto.Context.get_by/2being called instead ofget_by/1in the custom context #537 - [
Pow.Ecto.Schema.Changeset] ThePow.Ecto.Schema.Changeset.validate_email/1method has been improved per specifications to support wider unicode support, fully-qualified domain validation, and comments #565
v1.0.20
Now supports Phoenix 1.5, and requires Elixir 1.7 or higher. #494
Enhancements
- [
Mix.Tasks.Pow.Extension.Phoenix.Gen.Templates]mix pow.extension.phoenix.gen.templatesnow dynamically loads template list from the extension base module #461 - [
PowResetPassword.Plug]PowResetPassword.Plug.load_user_by_token/2now sets a:pow_reset_password_decoded_tokenkey inconn.privatethat will be used inPowResetPassword.Plug.update_user_password/2#464