Commit Graph

892 Commits

Author SHA1 Message Date
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
Carlos A. da Silva
cf1ea9ab86 Cleaning up recoverable methods, changing to use a hash of options instead of default parameters. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
37de41725c Moving perishable as dependency only for confirmable and recoverable. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
9b8ef40260 Moving notifier from lib to engine. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
f8f8ba06a1 Changing SECURE_AUTH_SITE_KEY to mattr_accessor, adding gitignore and removing log files from test app. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
7ce49cbbe8 Configuring session and password controllers as engine, and getting integration tests from devise example app. 2009-10-09 07:36:12 -03:00
Carlos A. da Silva
3655fe9096 Restructuring directories for models and mailers. 2009-09-20 10:35:26 -03:00
Carlos A. da Silva
ffc383953e Fix validating length of password. 2009-09-18 12:11:42 -03:00
Carlos A. da Silva
b82717a96c Adding validatable module containing some default email and password validations. 2009-09-18 12:03:41 -03:00
Carlos A. da Silva
91b19bd44f Adding find and reset password method to recoverable 2009-09-18 10:47:12 -03:00
Carlos A. da Silva
7f77b4ae40 Creating recoverable module, reseting passwords and sending reset instructions. Some minor refactorings. 2009-09-18 10:20:45 -03:00
Carlos A. da Silva
37f6a04c16 Moving perishable token into separated module. 2009-09-18 09:01:29 -03:00
Carlos A. da Silva
0b452cbd29 Setup confirmation instructions notification and tests green. 2009-09-17 21:29:13 -03:00
Carlos A. da Silva
2d2fc9d6b7 Moving views path to lib. 2009-09-17 20:09:00 -03:00
Carlos A. da Silva
673fe04eca Adding hook to authenticate method for testing if a user is already confirmed. 2009-09-17 20:03:38 -03:00
Carlos A. da Silva
3e6d1ffe43 Creating notifier and first attempt to send instructions to confirm by email. Some minor refactoring. 2009-09-17 19:54:19 -03:00
Carlos A. da Silva
bb336150fe Refactoring. 2009-09-17 11:27:45 -03:00
Carlos A. da Silva
debb0956a8 Adding confirmable module, generating confirmation code and confirming a user account. 2009-09-17 11:06:46 -03:00
Carlos A. da Silva
06ebf038e4 Creating authenticate method for user. 2009-09-17 09:46:40 -03:00
Carlos A. da Silva
955c3383c2 Authenticable module: generating salt and encrypting password 2009-09-17 09:24:33 -03:00