Commit Graph

93 Commits

Author SHA1 Message Date
Carlos A. da Silva
9643a5fa6d Removing attr_accessible. 2009-10-22 20:18:16 -02:00
Carlos A. da Silva
4b7aa5a2d0 Adding missing failure file and test. 2009-10-22 20:18:16 -02:00
Carlos A. da Silva
11e4ee112b Adding Failure module to redirect the user when unauthenticated or unconfirmed, based on warden last changes 2009-10-22 20:18:16 -02:00
Carlos A. da Silva
697a17686e Updating model_config and require confirmable hook with last changes. 2009-10-22 20:18:16 -02:00
Carlos A. da Silva
548b7a9b4d Documentation about confirm_in and remember_for configurations and some tests. 2009-10-22 20:18:16 -02:00
Carlos A. da Silva
5631b8dacd Remember the user only if the remember token has not expired. 2009-10-22 20:18:16 -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
Carlos A. da Silva
80f3f30704 Creating confirm_in configuration to confirmable and verifying whether the user is active during the configured time without confirming. 2009-10-22 20:18:15 -02:00
José Valim
200b269d79 Allow null to be given to authenticable. 2009-10-22 19:26:10 -02:00
José Valim
f00d29c97a Devise migratable. 2009-10-21 00:09:26 -02:00
Carlos A. da Silva
22dd5f5669 Fix encrypt password tests. 2009-10-20 13:31:34 -02:00
Carlos A. da Silva
342f948bc8 Adding pepper and stretches configuration per model, and globaly setup through Devise.pepper and Devise.stretches 2009-10-20 11:17:40 -02:00
Carlos A. da Silva
9720c36380 Updating tests and fix rememberable serialize_from_cookie. 2009-10-20 08:59:01 -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
Carlos A. da Silva
9a10709545 Fixing singular options for mappings. 2009-10-18 18:19:04 -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
José Valim
9051d842c0 Allow devise :all, :except => :foo to be given. 2009-10-18 13:30:32 -02:00
José Valim
609a83a76c Allow to access the session for a given scope, through #{scope}_session reader and improved documentation. 2009-10-18 12:54:21 -02:00
Carlos A. da Silva
f1bb64fb1e Update flash messages to show signed in automatically info. 2009-10-18 10:39:22 -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
Carlos A. da Silva
29ea916e9f Fix clearing reset password token while reseting password. 2009-10-18 09:54:53 -02:00
Carlos A. da Silva
75e98d3041 Separating perishable token into confirmation and reset_password tokens. Adding confirmation_sent_at attribute. 2009-10-18 09:14:52 -02:00
Carlos A. da Silva
a5cb147eb2 Stores the requested page before signing in and redirect the user to the stored uri after. 2009-10-17 11:12:50 -03:00
Carlos A. da Silva
abfb33a040 Adding missing account file. 2009-10-17 10:25:04 -03:00
Carlos A. da Silva
d87ff26cbd Allow setup of path_names in devise_for mapping for overwriting sign_in, sign_out, password and confirmation keywords. 2009-10-16 20:46:06 -03:00
Carlos A. da Silva
0f174dbf4b Updating routes to use sign_in/sign_out instead of session. 2009-10-16 13:44:51 -03:00
Carlos A. da Silva
3700e9979c Clearing perishable token when confirming or reseting password. 2009-10-15 17:36:44 -03:00
Carlos A. da Silva
73442abe95 Refactoring confirmable callbacks and updating TODO 2009-10-15 17:05:46 -03:00
Carlos A. da Silva
e8611609ac Send confirmation instructions only works if the record is not confirmed. 2009-10-15 16:54:04 -03:00
Carlos A. da Silva
417f273a81 Moving perishable inclusion to active_record devise, to include just once. Also refactor confirm! method. 2009-10-15 16:43:30 -03:00
Carlos A. da Silva
7f91651d0c Updating tests to reflect salt and password changes. 2009-10-15 16:19:03 -03:00
José Valim
f1cecacc99 Move mappings to routes. 2009-10-12 21:49:51 -03:00
José Valim
5848f12cc1 Added magic predicates to mapping. 2009-10-12 21:06:39 -03:00
Carlos A. da Silva
0664359381 Updating helpers to use sign_in/sign_out instead of authenticate/logout. 2009-10-12 19:20:12 -03:00
José Valim
6da49499ff Finished major changes. 2009-10-12 10:18:14 -03:00
José Valim
e50dfcc73f More specs. 2009-10-12 09:56:12 -03:00
José Valim
78525e2536 More tests 2009-10-12 08:49:28 -03:00
José Valim
43a13bf2fe Add missing files. 2009-10-12 08:37:42 -03:00
José Valim
3c5bfc9520 Kick tests back to life. 2009-10-12 08:37:28 -03:00
José Valim
b012bc800b Kick tests back to life. 2009-10-11 23:24:57 -03:00
José Valim
bd8f7dc631 Some major changes. 2009-10-11 22:11:58 -03:00
Carlos A. da Silva
91a87eed2c Use signed_in instead of logged_in, and setup current_user to pass a scope. 2009-10-11 13:00:44 -03:00
Carlos A. da Silva
f840129815 Creating new integration test simulating sign in and sign out with user and admin at same time. 2009-10-11 11:21:49 -03:00
Carlos A. da Silva
1226c3d8de Adding separated tests for admins and users to enforce modularization. Rewrite of several tests. 2009-10-11 10:49:25 -03:00
Carlos A. da Silva
62bef5605a Adding filters generation based on devise mappings. 2009-10-11 08:15:48 -03:00
Carlos A. da Silva
198167d978 Removing default mapping and Updating tests at all 2009-10-10 18:07:25 -03:00
Carlos A. da Silva
561833e060 Adding warden scopes to helper methods. 2009-10-10 16:47:11 -03:00