Pow v1.0.13 Release Notes

Release Date: 2019-08-25 // over 4 years ago
  • 🔄 Changes

    • ⚡️ Updated PowEmailConfirmation.Ecto.Schema.changeset/3 so; (#259)
      • when :email is identical to :unconfirmed_email it won't generate new :email_confirmation_token
      • when :email is identical to the persisted :email value both :email_confirmation_token and :unconfirmed_email will be set to nil
      • when there is no :email value in the params nothing happens
    • Updated PowEmailConfirmation.Ecto.Schema.confirm_email_changeset/1 so now :email_confirmation_token is set to nil (#259)
    • Updated Pow.Ecto.Schema.Changeset.user_id_field_changeset/3 so the e-mail validator now accepts unicode e-mails (#257)
    • Added PowEmailConfirmation.Ecto.Context.current_email_unconfirmed?/2 and PowEmailConfirmation.Plug.pending_email_change?/1 (#256)
    • ➕ Added :email_validator configuration option to Pow.Ecto.Schema.Changeset (#257)
    • ➕ Added Pow.Ecto.Schema.Changeset.validate_email/1 (#257)
    • Fixed bug in PowEmailConfirmation.Phoenix.ControllerCallbacks.send_confirmation_email/2 where the confirmation e-mail wasn't send to the updated e-mail address (#256)