Lucas Mazza
1ad09f9cfc
Improve CHANGELOG and move assignment to outside the if statement.
2014-04-28 11:28:48 -03:00
Maxim Pechnikov
a841e6c4f0
fixed storing location with bad URL
2014-04-25 19:14:32 +04:00
Michael Crismali
f37b10ef87
Switched all instances of 'not blank?' to 'present?'
2014-04-17 20:34:28 -05:00
Ross Kaffenberger
5f32cd25fd
support multiple warden configuration blocks
...
Changes the behavior of `Devise.warden` such that calling it multiple
times with different blocks will result in a call to each block on
`Devise.configure_warden!` rather than "last block wins". This is
especially used for plugins that wish to extend warden functionality
without clobbering base app configuration or vice versa.
2014-04-15 17:20:21 -04:00
Sadjow Leão
a2bd5631da
Use port option in default url options for ActionMailer
2014-04-04 19:01:12 -03:00
Lauro Caetano
f7fdde1ab0
Add the invalidate_all_sessions_on_logout configuration to invalidate
...
all the remember me tokens when the user signs out.
2014-04-04 16:17:26 -03:00
José Valim
947169e4f5
Merge pull request #2960 from kgiszczak/redirect-url-tweaks
...
Use full urls instead of just paths when redirecting in failure app.
2014-04-04 17:41:41 +02:00
José Valim
b786c384d5
Remove need for raw session inspect
2014-04-03 21:00:12 +02:00
Lucas Mazza
6027787930
Merge pull request #2954 from plataformatec/lm-last-request-at-json-serialization
...
Serialize the `last_request_at` entry as an Integer
2014-04-02 22:58:14 -03:00
Kamil Giszczak
a38f2f96b5
Use _url routes instead of _path
2014-04-02 15:42:41 +02:00
Karl Entwistle
58b311a93f
Use the ORM Adapter API
2014-03-31 15:24:55 +01:00
Karl Entwistle
de57ef83fb
Find a resource based off its encrypted reset_password_token
2014-03-31 14:58:52 +01:00
Lucas Mazza
da0c27393f
Serialize the last_request_at entry as an Integer
...
Pushing the `Time` object inside the session has inconsistencies
across different serializers and we should use a more primitive type
so we don't need any specific parsing logic for the JSON serializer.
2014-03-28 22:51:56 -03:00
José Valim
5b49bd3450
Improve docs for update_with_password
...
Closes #2942
2014-03-24 21:49:48 +01:00
Lucas Mazza
755219ccfc
Release v3.2.4
2014-03-17 11:16:38 -03:00
Lucas Mazza
ccfe389be1
Merge pull request #2916 from kayline/master
...
Add ability to generate only specified view directories
2014-03-09 20:49:27 -03:00
Molly Trombley-McCann and Shatarupa Nandi
a79e0f6bca
Rename variable to views, change flag to -v
2014-03-06 13:41:11 -08:00
Molly Trombley-McCann
09ebe833b3
Add a flag to views generator allowing user to specify which view directories to generate
2014-03-04 15:05:16 -08:00
Greg Cobb and Molly Trombley-McCann
0d06ed6c79
WIP
2014-03-03 09:30:00 -08:00
Peter Vandenabeele
7e6dd5022b
Clarify that this stretch behavior is for bcrypt
...
* other encryptors show a different behavior regarding the
number of stretches
2014-03-02 20:23:57 +01:00
Peter Vandenabeele
286eefa9b4
Note that the cost of bcrypt grows dramatically with number of stretches
...
* this will avoid people (like me) loosing an hour trying to understand
why doing it "a little bit safer" with 20 stretches suddenly takes
60 seconds to do sign_up or sign_in. An example of such discussion is:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/399627
2014-03-02 18:57:32 +01:00
Peter Vandenabeele
a89af190e2
Fix typo in initializer template comment
2014-03-02 15:22:59 +01:00
Lucas Mazza
aea82d0b03
Update remaning 1.8 hash syntax.
2014-02-25 14:25:55 -03:00
José Valim
3d9dea39b2
Merge pull request #2899 from justanshulsharma/master
...
Updated ruby 1.9 hash syntax
2014-02-25 18:03:16 +01:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
Richard Lee
146a2e500e
Set default secret_key before eager load
2014-02-25 17:56:34 +08:00
David Butler
1987ffc171
Fix for #2875
2014-02-22 12:22:05 -08:00
José Valim
49403267cf
Merge pull request #2854 from aceofspades/omniauth_devise_route_context
...
Use _devise_route_context in omniauth url_helpers
2014-02-22 09:09:55 +01:00
Lucas Mazza
b8f1d0d0c6
Release v3.2.3
2014-02-20 15:30:48 -03:00
Ryan McGeary
5f9838950a
Remove password_length default docs in config template
...
The default specified in the docs does not match up with the default
specified in the config.
See
cc8636cfed/lib/devise.rb (L127)
Changing the docs to read 6..128 with the config setting to 8..128 is
feared to cause confusion, so removing the default clause instead.
2014-02-16 08:19:47 -05:00
Lucas Mazza
e57b672e90
Ensure that migrations are created with the .rb extension.
...
Since rails/rails#13612 the generator won't always add the `.rb`
extension when creating migrations with the `migration_template`
method.
2014-02-11 10:19:05 -02:00
Doug Puchalski
46c01d642b
Use _devise_route_context in omniauth url_helpers
2014-02-02 16:45:26 -08:00
Lucas Mazza
eba91e6580
Read the secret_key value from Rails secret_key_base.
...
It is possible to override this by setting the `secret_key` manually
on the `devise.rb` initializer on your application.
2014-01-22 11:13:25 -02:00
Jake Worth
61e87be580
Fix typos
2014-01-09 10:00:27 -06:00
Tobin Juday
2ba8275dcc
Fix off-by-one error in Lockable module
...
When using the maximum_attempts config, Devise actually let you fail n
+ 1 times, not n times.
See https://github.com/plataformatec/devise/issues/2825 for details.
2014-01-06 23:51:45 -05:00
José Valim
7a654cdd04
Merge pull request #2809 from moisesweb/mv_access_lock_without_email
...
lock_access! without sending email
2014-01-04 00:37:38 -08:00
Jeremy Ward
9d0d15b814
Updated documentation to use 1.9 hash syntax.
2014-01-02 19:02:36 -08:00
Jeremy Ward
b50fa74596
Edit is now configurable for devise registrations via path_name.
2014-01-02 17:49:37 -08:00
Moises Vargas M
be236fa6dd
lock_access! without sending email
2013-12-24 11:51:24 -05:00
schneems
a00921f417
[ close #2755 ] Raise incompatible route error
...
Right now if you try to use a route that you have defined in your `omniauth_callbacks` but you have not declared that resource to be `omniauthable` you will get a weird route missing error which causes the user to look in the routes for the fix:
```ruby
devise_for :users, controllers: {omniauth_callbacks: "users/omniauth_callbacks"}
```
This PR checks to see if the mapping of `:user` has the module `omniauthable` included in it when `omniauth_callbacks` is specified in the route. If it does not, an instructional error is raised:
```
Mapping omniauth_callbacks on a resource that is not omniauthable
Please add `devise :omniauthable` to the `User` model
```
2013-12-18 19:19:25 -06:00
Rogério Yokomizo
8ca34aa41e
Remove authentication some authentication token stuffs
...
Since we don't have authentication token, we don't have to check if
password is "X".
:authentication_token don't have to be in the blacklist for
serialization too.
2013-12-10 12:30:28 -02:00
Rogério Yokomizo
16ec143228
fix typo and some clarification
2013-12-05 10:39:42 -02:00
José Valim
c67de7e91c
Merge pull request #2772 from sferik/gender_neutral_pronouns
...
Remove a couple more gendered pronouns
2013-12-05 00:09:48 -08:00
Erik Michaels-Ober
3f03ec02ad
Cleanup trailing whitespace
2013-12-05 09:03:32 +01:00
Erik Michaels-Ober
4e7cd18a04
Remove a couple more gendered pronouns
2013-12-05 09:03:28 +01:00
Bartosz Kopiński
53893edec8
Removing regexp anchors in routing constraints
...
They're not allowed according to:
http://guides.rubyonrails.org/routing.html#segment-constraints
2013-12-02 21:27:23 +01:00
Erik Michaels-Ober
26e85c44e2
Removed use of gendered pronouns
2013-12-02 10:02:17 +01:00
José Valim
65947b6696
Release v3.2.2
2013-11-25 12:00:21 +01:00
Marcus Mansur
bd83483ba6
fixes missing caller
2013-11-21 13:26:34 -02:00
Christopher Sexton
7afc096fa4
Keep the query string and path in store_location_for
...
Persist the URI's query when saving to the session.
Fixes #2742
2013-11-20 15:47:20 -05:00