Commit Graph

69 Commits

Author SHA1 Message Date
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
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
José Valim
0e927013d0 Merge branch 'master' of git@github.com:plataformatec/devise 2009-10-15 15:54:13 -03:00
José Valim
2e780fe5de Change how salt and encrypt works. 2009-10-15 15:52:25 -03:00
Carlos A. da Silva
493f91fd37 Readme updates. 2009-10-13 17:01:42 -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
Carlos A. da Silva
4e263b96c9 Updating sessions controller to use resource oriented style. Changing authenticate method to accept a hash of attributes. 2009-10-10 16:20:23 -03:00
Carlos A. da Silva
15c5d9e049 Changing authentication method to redirect inside rails and not warden strategy anymore. Updating session to authenticate the user and set it to warden. 2009-10-10 15:59:37 -03:00
Carlos A. da Silva
fff46a53eb Some warden helpers tests taken from rails_warden 2009-10-10 14:03:18 -03:00
Carlos A. da Silva
11715cac1f Removing rails_warden dependency. 2009-10-10 13:52:14 -03:00
Carlos A. da Silva
aefa857ab2 Updating controllers to scope resource_class and changing mapping implementation to reload mapped class based on cache_classes configuration. 2009-10-10 11:05:56 -03:00
Carlos A. da Silva
23bb351d0e Tests with resource and resource_class 2009-10-10 09:32:51 -03:00
Carlos A. da Silva
d181975555 Moving resource_name and resource_class to Devise, rewriting route tests, using resource_class in controllers. 2009-10-10 08:37:22 -03:00
Carlos A. da Silva
f4de0f6c5a Creating Devise.map to generate and recognize urls based on scope. 2009-10-09 21:11:58 -03:00
Carlos A. da Silva
984cf8ee20 Moving Devise method to Devise::ActiveRecord and updating TODO 2009-10-09 10:46:24 -03:00
Carlos A. da Silva
1ac4cab473 Adding some documentation. 2009-10-09 10:37:36 -03:00
Carlos A. da Silva
17d1073181 Creating acts_as_devisable method for active record to include devise. (need refactoring, maybe something different to do the job) 2009-10-09 10:37:36 -03:00
Carlos A. da Silva
aaddc05f99 Moving modules inside respective Models module. 2009-10-09 10:37:36 -03:00
Carlos A. da Silva
c0b272a49d Refactoring generating salt and encrypting password only before saving the record. 2009-10-09 07:36:13 -03:00
Carlos A. da Silva
c82cad5887 Ensure user won't be able to sign in after asking for confirmation instructions or updating it's email, forcing to pass the confirmation process. 2009-10-09 07:36:13 -03:00
Carlos A. da Silva
3cc61e4a96 Creating stretches to force encrypting password as many times as possible. 2009-10-09 07:36:13 -03:00
Carlos A. da Silva
5c210d725f Some minor refactorings in mailer, confirmable and recoverable. Also some route docs inside controllers. 2009-10-09 07:36:13 -03:00
Carlos A. da Silva
42d00a8dea Updating views and helpers to use i18n by default. 2009-10-09 07:36:13 -03:00
Carlos A. da Silva
3b5f1437b5 Creating helpers module and link helpers. 2009-10-09 07:36:13 -03:00
Carlos A. da Silva
fa4f9043b8 Adding default locale file for I18n. 2009-10-09 07:36:13 -03:00
Carlos A. da Silva
b36856a3a1 Creating confirmation controller and integration tests. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
095f7026cb Refactoring recoverable tests to access database only when needed. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
98fa7bf336 Refactoring confirmable to use hash options instead of parameters as recoverable does. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
97ae1795bd Recoverable class method reset_password should use a bang! 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
ba7e74e1a1 Refactoring confirmable and recoverable to use the same default find method by perishable token. 2009-10-09 07:36:12 -03:00