See these 0.3.0
to 0.3.1
upgrade instructions to bring your existing app up to speed.
-
Enhancements
- Remove unused params from registration path
- Update docs for coherence_links
- Add unit tests for registration controller
- Support unconfirmed access
- Support auto login if unconfirmed access is enabled
- Start refactoring into schema modules (web/models/confirmable.ex)
- Raise compiler error when protected routes are defined before public routes
- Add current_user and logged_in? view helpers
- Add templates customization section
- Add Config.logged_in_url to be used for redirect from redirect_logged_in plug
- Add :coherence to apps in installer instructions
- Add sign in link helper
- Validate email format with some minor improvements
- Document customizable actions
- Allow configuring specific routes
- Add signout_link function to view helpers
- Support {:system, env_var} in config
- Add new
mix coherence.install --reinstall
option - Add
--silent
,--confirm-once
, and--no-confirm
option tomix coherence.install
-
Bug Fixes
- Remove web/controllers/redirects since it breaks releases
- Fix readme getting started section
- Ensure local module is loaded on login callback
- Give correct HTTP status code when login fail
-
Deprecations
- email_from config - use email_from_name and email_from_email
- email_reply_to config - use email_reply_to_name and email_reply_to_email
-
Backward incompatible changes
See these 0.2.0
to 0.3.0
upgrade instructions to bring your existing app up to speed.
-
Enhancements
- All controller redirects are now customizable
- Logged in users trying to view pages meant for unauthenticated users now get redirected to logged_out_url (session new, register new, etc.)
- Support resend confirmation instructions
- Support custom changesets
- Make routes more intuitive
--install-options
mix task option
-
Bug Fixes
- rename database column
confirmation_send_at
to confirmation_sent_at
- fix an coherence.clean --all doing a dry-run
- fix router install instructions
- install instructions include confirm! for seeds file
- rename database column
-
Deprecations
coherence_routes :public
is replaced withcoherence_routes
coherence_routes :private
is replaced withcoherence_routes :protected
-
Backward incompatible changes
coherence_routes
has changed from default:all
to public routes- the rename of database column
confirmation_send_at
to confirmation_sent_at
requires that you generate a new migration to alter the table.
-
Enhancements
- Support Token Authentication
- Support IP Address Authentication
- Support ability to clean specific options from an install
-
Bug Fixes
- Fix compile issue with trackable and not lockable
- Fix incorrect config installer instructions
- Fix types in README file
-
Deprecations
- None
-
Backward incompatible changes
- the schema change
confirmation_sent_at
will require updating the user model database. You should create a migration to alter the table.
- the schema change
-
Bug Fixes
- Use rememberable token when session dies
-
Deprecations
- User.confirm!/1 - use Coherence.ControllerHelpers.confirm!/1
- User.lock!/1 - use Coherence.ControllerHelpers.lock!/1
- User.unlock!/1 - use Coherence.ControllerHelpers.unlock!/1
-
Enhancements
- Added configurable login field to templates and controllers
- Support Ecto 2 cast and validations
- Schema.confirm! now return error if already confirmed
- Add CONTRIBUTING.md
- Enhancements to ViewHelpers.coherence_links
- Add more tests
- Added more docs and fix some formating issues
-
Bug Fixes
- Fix schema validation issue when passord_hash is set in config
- Add dummy Schema.validate_coherence when authentication option is not enabled
- Fix installer not detecting existing user model
-
Enhancements
- Added CHANGELOG.md file
-
Bug Fixes
- Fixed some documentation issues
- Fixed issue where install after clean does not compile with missing route helpers
-
Backward incompatible changes
- Changed user database field
hashed_password
to password_hash`
- Changed user database field