82 Commits

Author SHA1 Message Date
Glenn Roberts
b0ff0d46dd add content_type config parameter
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-17 21:13:16 +01:00
José Valim
1b6f1b9752 Add registerable integration tests. 2010-02-09 00:08:57 +01:00
José Valim
732e31528e More changes in update_with_password. 2010-02-08 23:14:03 +01:00
José Valim
d7db5b1eea More work on edit. 2010-02-08 20:38:47 +01:00
José Valim
2761a75437 Refactor on routes. 2010-02-08 20:25:20 +01:00
José Valim
8a15ac6e4a Stub out other views for Registerable. 2010-02-08 19:07:24 +01:00
José Valim
9798ad7455 Allow scoped views to be customized per controller/mailer class. 2010-02-08 17:33:22 +01:00
José Valim
54cd2cc0e8 Use _ instead of . 2010-02-08 17:15:12 +01:00
Carlos Antonio da Silva
445070f6ec Use sign_up instead of registration in routes. Fix issue with users being signed in while attempting to sign up with info from already existing user. Also fix signed up flash. 2010-02-08 11:03:15 -02:00
Carlos Antonio da Silva
49d1978863 We do not need to check for registerable active inside the view. 2010-02-05 00:02:49 -02:00
Carlos Antonio da Silva
6b837cb285 Introducing Registerable module, allowing users to sign up. 2010-02-04 20:08:38 -02:00
José Valim
3781a0f47b Tidy up token authentication implementation. 2010-02-02 13:21:00 +01:00
Jonas Grimfelt
4878bdb60b Second version of token_authenticatable reflecting feedback: Nuked all hook-stuff. Should be easy to custom-reset authentication tokens by inheritance.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-02 12:37:06 +01:00
Jonas Grimfelt
e1440fb430 Initial support for authorization using "authentication token" (a.k.a. "single access token") - new module. Corresponding changes to Devise core to hook events like "after_changed_password" (only one added now - only one that makes much sense for latest module) easily. Unit and integration tests included. NOTE: One failing test for hooking Warden::Manager.after_authentication - gets ignored for some reason.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-02 12:36:44 +01:00
Jonas Grimfelt
0c7c762c16 Fixed some Ruby 1.9 issues/bugs. 2010-01-21 16:06:19 +08:00
Carlos Antonio da Silva
6d80418fd1 Changing flash messages to new Rails defaults :notice/:alert 2010-01-20 17:46:14 -02:00
José Valim
a5b2ee5171 Improve documentation for after_sign_in_path_for. 2010-01-16 10:56:35 +01:00
José Valim
fdc2e795d7 Simplify links requirement. 2010-01-14 16:04:13 +01:00
José Valim
b581f86317 DRY up controllers. 2010-01-13 18:12:13 +01:00
José Valim
d0ccd14c54 Merge remote branch 'mhfs/master' 2010-01-13 17:49:20 +01:00
José Valim
6bb1901830 Add tests for mail with proc. 2010-01-13 17:45:02 +01:00
Jonas Grimfelt
37119616ff Devise.mailer_sender accepts a proc too, passing mapping. Useful if sender e-mail should differ for different devise scopes or current locale.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-13 17:36:05 +01:00
Marcelo Silveira
915afa5f0a forgot the partial.. 2010-01-09 12:59:24 -02:00
Marcelo Silveira
4498acb1d0 moved view links into a partial and I18n'ed them 2010-01-09 12:58:51 -02:00
Marcelo Silveira
32991e13c4 Merge and fix conflicts. 2010-01-09 11:22:27 -02:00
José Valim
a789f08d3b Cleaning up README to be more compatible with the latest stuff. 2010-01-05 16:01:16 +01:00
Marcelo Silveira
d2fa737aa0 introducing lockable implementation 2010-01-01 17:57:35 -02:00
José Valim
2dd0434bd6 Allow SessionsController to be used without authenticatable. 2009-12-15 09:26:11 +01:00
José Valim
0a5ba20931 Mail views a scoped as well. 2009-12-15 01:32:40 +01:00
José Valim
415bcdc722 Added scoped views support. Just turn it on in your Devise.setup. 2009-11-21 20:07:37 -02:00
José Valim
d445b4beb9 Create after_sign_in_path_for and after_sign_out_path_for hooks and sign_in_and_redirect and sign_out_and_redirect helpers. 2009-11-19 11:16:31 -02:00
José Valim
680cb0f95f Added Devise.all to freeze your app strategies and moved friendly_token to Devise module. 2009-11-18 09:26:47 -02:00
José Valim
ffbc9c604d Only redirect if needed. 2009-11-16 14:31:09 -02:00
José Valim
6d09eb66cf Tidying up encryptors. 2009-11-10 18:55:13 -02:00
José Valim
4debe4080b Allow :path_prefix to be given to devise_for. 2009-11-06 14:27:27 -02:00
José Valim
dc86a571ae [DEPRECATION] Notifier is deprecated, use DeviseMailer instead. Remember to rename app/views/notifier to app/views/devise_mailer and I18n key from devise.notifier to devise.mailer. 2009-11-02 23:14:27 -02:00
José Valim
5172d50b95 Ensure fail! works inside strategies, create unauthenticated and invalid messages and do not redirect on invalid authentication. 2009-10-29 08:29:31 -02:00
José Valim
475da069ab Make ActionMailer and ActionController more consistent by always using Devise mapping names and updated README. 2009-10-29 07:14:38 -02:00
José Valim
9668640908 Fix a bug introduced in last release refactoring. 2009-10-28 08:31:54 -02:00
José Valim
dd3e534a19 Build resource in all views. 2009-10-27 21:31:12 -02:00
José Valim
dede8af5b0 Do not include Devise internal helpers in application controller. 2009-10-27 21:26:40 -02:00
Carlos A. da Silva
bbca9e830e Verify confirmation time frame to let the user sign in or block it if the user is not confirmed. 2009-10-22 20:18:16 -02:00
José Valim
d505fd15c0 Small refactoring. 2009-10-20 08:44:21 -02:00
Carlos A. da Silva
59a9f38983 Fix requiring warden 2009-10-20 01:42:07 -02:00
Carlos A. da Silva
0eb8b3b7cc Mailer subjects namespaced by model 2009-10-20 01:28:01 -02:00
Carlos A. da Silva
28a7f78fba Creating rememberable module. 2009-10-20 00:31:33 -02:00
Carlos A. da Silva
fc08a7c5ac Changing resource_home_path to resource_root_path and add the same redirect to confirmation and password. 2009-10-19 00:38:50 -02:00
José Valim
9feb9455ce Allow page after sign in to be configured. 2009-10-18 15:25:16 -02:00
José Valim
b0a2da72b5 Use sign_in and authenticate methods. 2009-10-18 15:01:56 -02:00
Carlos A. da Silva
8d85db3b57 Sign user in automatically after confirming or changing it's password 2009-10-18 10:36:20 -02:00