Skip to content

v1.0.13

Compare
Choose a tag to compare
@danschultzer danschultzer released this 25 Aug 23:25

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)