-
Enhancements
- Add new
coh.gen.controllersgenerator coh.cleantask now supports phx and phoenix projects- Renamed
Coherence.ControllerHelpersmodule toCoherence.Controller
- Add new
-
Bug Fixes
- Fixed issues with generated controllers
- Fixed issues with clean tasks
-
Backward incompatible changes
--controllersoption is not supported for the install tasks- removed the
coherence.cleantask - Need to update
seeds.exsif your using confirmable option
-
Enhancements
- Support the released Version of Phoenix 1.3 project structure
- Project name spaced generated view modules
- GenServer based Session Store
- Single user model stored for multiple logins of the same user
- Support to update user model for all logged in sessions
- add --web-module installer option
- Generate Invitation, Rememberable, and Trackable schemas
- Use app's layout by default. Use --layout option to generate and use a specific layout for coherence. #186
- Remove login callback and replace with Phoenix.Controller.redirect. #254
-
Bug Fixes
- Fixed incorrect reference to CoherenceDemo in Config.mailer?
- Proper support for binary_ids
-
Backward incompatible changes
- Does not support Phoenix 1.3.0-rc versions with lib/my_project/web project structure
- Previous generated controllers and views must be updated
See these 0.3.1 to 0.4.0 upgrade instructions to bring your existing app up to speed.
-
Enhancements
- Localization with Gettext
- Support the new
Phoenix 1.3project structure created withmix phx.new. Usemix coh.install - Support for legacy projects with the
mix coherence.installtask - Callback to redirect invitation resend
- Add use_binary_id config
- Use the binary_id generators setting in your project
- Remove most of the Credo warnings
- Support user tokens for channel authentication
- Removed compiler warnings for Elixir 1.4
- Change datetime to utc_datetime
- Added new trackable-table option to reduce noise in user schema
- Track login and logout in trackable-table
- Added specs and resolved many dialyzer warnings
- Added asyc_rememberable? support for near concurrent Ajax requests
- Don't increment rememberable sequence number for Ajax requests
- Added support for custom layouts
- Added configurable require current password to change passwords
- Added support for fast switch user (no password required) in dev environment only
-
Bug Fixes
- Fix session controller when lockable is false
- Make remember me clickable
- Fixed layout for unauthenticated protected routes
- Fixed race conditions in rememberable callback
-
Backwards incompatible changes
- coherence config requires
:messages_backendfield to be set (MyProject.Coherence.Messages) - coherence_messages.ex file must be generated and included in our app. Done by the installer
- coherence config requires
:routerfield to be set (MyProject.Web.Router)
- coherence config requires
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 --reinstalloption - Add
--silent,--confirm-once, and--no-confirmoption 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-optionsmix task option
-
Bug Fixes
- rename database column
confirmation_send_atto 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 :publicis replaced withcoherence_routescoherence_routes :privateis replaced withcoherence_routes :protected
-
Backward incompatible changes
coherence_routeshas changed from default:allto public routes- the rename of database column
confirmation_send_atto confirmation_sent_atrequires 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_atwill 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_passwordto password_hash`
- Changed user database field