Carlos Antonio da Silva
ce071502ee
Display unconfirmed email when using reconfirmable and email changed notification
...
Otherwise we'd be mistakenly displaying the original email in the
message (which is the same we're sending the message to).
Also tweak the messaging a bit in this case, to show that the email "is
being changed" (the change hasn't taken effect yet).
Related to #4455 .
2017-03-15 11:47:47 -03:00
Carlos Antonio da Silva
2135ae5e5e
Change email_change => email_changed notification
...
This better indicates what the setting is for, and when it's supposed to
be triggered.
We might eventually deprecate the existing password_change on in favor
of password_changed.
2017-03-10 08:56:34 -03:00
Carlos Antonio da Silva
70eb18d766
Notify original user email when the email changes
...
This adds a new setting `send_email_change_notification` which will
send an email to the original user email when their email is updated to
a new one.
It doesn't take into account the reconfirmable setting yet, it will be
added next, so that if confirmable is included and reconfirmable is
being used, the email will be triggered when the email change is
requested, not when confirmed (e.g when we store the email in
`unconfirmed_email`, not when it's later copied to `email` when that is
confirmed).
2017-03-06 17:04:26 -03:00
ethiraj
7a44233fb9
set minimum password length after user registration update
2016-10-27 08:33:35 +05:30
Kris Handley
0c991af985
Fix Rails 5 env deprecation warning
...
Full warning ```DEPRECATION WARNING: env is deprecated and will be removed from Rails 5.1```
2016-06-18 14:20:08 +01:00
Steve Richert
83d5d3142d
Self-love isn't entirely appropriate in this setting
2016-05-26 09:25:44 -04:00
Ulisses Almeida
2044fffa25
Deprecate the bypass option of sign_in ( #4078 )
...
The sign_in method permits the bypass option
that ignore the others options used. This behavior
has lead some users to a misconfusion what the
method really does.
This change deprecate the bypass option in favor
of a method that only does the sign in with bypass.
Closes #3981
2016-05-15 11:46:48 -03:00
Matt Yanchek
85bcbdf18b
Set minimum password length for edit and new views ( #4068 )
...
* Set minimum password length for edit and new views
* Update edit.html.erb
* Update registerable_test.rb
2016-05-05 17:16:41 -03:00
Jeroen Visser
b214333760
Remove trailing whitespace from confirmation view
...
Though not a real issue, it was highlighted as an error by my commit
hooks, so I took the opportunity to fix it.
2016-03-07 10:07:34 +01:00
oss92
18528650c3
Added DeviseController#set_flash_message!
2016-02-11 02:49:53 +02:00
Paul Menzel
f2d7b8f740
Spell verb *set up* with a space
...
The verb *set up* is spelled with a space [1].
```
$ git grep -l 'to setup' | xargs sed -i 's/to setup/to set up/g'
$ git grep -l '# Setup' | xargs sed -i 's/# Setup/# Set up/g'
$ git grep -l "test 'setup" | xargs sed -i "s/test 'setup/test 'set up/g"
```
Revert the change for *setup block yields self*.
Change the rest manually.
[1] http://www.merriam-webster.com/dictionary/set%20up
2016-02-02 19:09:19 +01:00
djsegal
2006f87b58
Add #3732 helper logic to devise controller: #3864
2015-12-18 04:05:30 -05:00
Thomas Walpole
2024fca4df
Rails 5 compatability. Remove rails < 4.1 and Ruby < 2.1
2015-12-11 09:47:30 -08:00
Julien Lerpscher
8426b12550
set minimum password length on reset failure
2015-11-10 12:17:29 +01:00
Timo Schilling
f5e984c151
use OmniAuth::Utils.camelize
...
This will display the provider name with the original camelization:
facebook => Facebook
github => GitHub
linkedin => LinkedIn
2015-08-28 07:51:37 +02:00
Jon Phenow
e9c82472ff
quick comment touch-ups
2015-08-27 10:26:12 -05:00
Jon Phenow
48ed2fd1aa
templates, config documentation
2015-08-27 10:26:12 -05:00
Jon Phenow
0fa74d863d
functionality
2015-08-27 10:26:12 -05:00
Neil van Beinum
710496b6a8
Remove unnecessary line break on edit password page.
2015-08-06 18:21:34 +01:00
Feng Ye
4d89c709a5
redirect to after_resetting_password_path always
2015-07-10 20:01:42 +08:00
José Valim
b14995167b
Do not mark _prefixes as protected
2015-05-26 09:53:38 +02:00
Carlos Antonio da Silva
868d3d82a0
Do a final pass removing spaces around square brackets
...
Keep plataformatec guidelines and review tools happy.
Related to #3480 .
2015-03-13 13:59:19 -03:00
Dave Copeland
e1b9dc860f
remove use of hide_action in favor of protected
...
Rails 5 will [not have `hide_action` any longer](https://github.com/rails/rails/pull/18371/files ), as the Rails convention is to not expose private or protected methods as actions, thus obviating the need for `hide_action`.
Presumably, there is code inheriting from `DeviseController` that is
calling these helpers, so they cannot be private, so protected seems to
be the only way to get Devise working with Rails 5.
2015-03-01 15:05:20 -05:00
José Valim
893a0222ef
Update new.html.erb
2015-02-14 10:59:01 +01:00
redbar0n
ee8c13435f
Fix potential security leak in email reconfirmation flow
...
Ref. bug/issue: https://github.com/plataformatec/devise/issues/3457
2015-02-13 21:43:06 +01:00
Michael Borohovski
f0992e4a96
Added an option to not automatically sign in a user after a password reset. This is useful for cases where additional strategies might be needed (such as two-factor authentication, e.g.), or generally if it is considered a security risk to automatically log in a user after a password is reset.
2015-02-13 02:29:11 -08:00
Rodrigo Rosenfeld Rosas
c2fb80d4d9
Use Devise translations when inheriting from core controllers
...
closes #3367
2015-01-12 17:24:17 -02:00
George Millo
5bb479052c
Remove local variable from RegistrationsController
2015-01-11 15:10:44 +00:00
Massimiliano
6c5323c574
Update devise_controller.rb
2015-01-07 14:46:02 -05:00
Massimiliano
c92ef26b94
Update find_message to accept scope
...
This should still keep the devise lookup in the case that a customed scope is not passed as option, but if instead the custom scope is passed, then the find_message method will use it.
This is kind of useful, if i don't want overwrite the devise locale, and use different locale files, but keeping still the fallback of my devise locale.
2015-01-06 21:06:09 -05:00
Carlos Antonio da Silva
bebf0ecbbe
Simplify the logic to display the minimum password length hint
...
There's no real need to pass 2 variables to the view to figure that out,
we can simply display the message relying on whether or not the
`@minimum_password_length` variable is present.
2014-12-27 11:22:40 -02:00
Katee
d0a30d485d
Moves minimum_password_length to DeviseController.
2014-12-16 16:14:32 -05:00
Katee
607bf70674
Shows min password length on edit password view.
2014-12-15 19:52:58 -05:00
David Rodríguez
1bbcc54026
Yield the resource in RegistrationsController#new
2014-11-19 09:32:51 +01:00
Mihai Târnovan
3902e0702c
Yield the resource in SessionsController#new
2014-11-05 15:47:10 +02:00
Chaker Nakhli
8a7796aea9
Add ActiveSupport load hook for DeviseController
2014-10-28 13:41:55 +01:00
Sean Collins
cfe0dc1ee1
change class="fields" to class="field" to be same as rails scaffolding
2014-10-22 12:44:01 -04:00
Uday Singh
51263f995b
updated confirmation views with the same formatting and added fields and actions to tag
2014-10-22 04:25:33 -04:00
Uday Singh
f9ca733e68
updated passwords views with proper formatting akin to scaffolding and classes for fields and actions
2014-10-22 04:23:51 -04:00
Uday Singh
9c221e2418
updated new.html.erb unlock views
2014-10-22 04:12:28 -04:00
Uday Singh
ef016b448e
reformatted and updated sessions views with proper fields and action classes
2014-10-22 04:10:01 -04:00
Uday Singh
a5bab11321
reformatted fields, added fields and actions class like rails scaffolding, changed <i> html tag for updated <em> html5 tag
2014-10-22 04:08:33 -04:00
Hannah Briggs
f80ebea0e6
allow set_flash_message to set flash.now messages
2014-10-18 21:28:20 -07:00
Michael Ding
002b4c6c01
fix argument bug
...
when `is_navigational_format?` returns false, Exception will be throw:
ArgumentError (Nil location provided. Can't build URI.)
2014-09-29 14:36:05 +08:00
Damir Svrtan
df9712bbe4
Rename links.erb to links.html.erb
2014-08-18 00:15:25 +02:00
alexsoble
c3fa8fabcf
Restore password length message in case of error
2014-08-10 12:17:54 -04:00
alexsoble
fe015f5a54
Revert "Update routes to match 'sign up'/'log in', incorporate feedback from @carlosantoniodasilva"
...
This reverts commit de2a24b3d3 .
2014-08-10 12:13:35 -04:00
alexsoble
de2a24b3d3
Update routes to match 'sign up'/'log in', incorporate feedback from @carlosantoniodasilva
2014-08-07 11:33:03 -04:00
alexsoble
67d8dd1e94
Replace 'Sign in' with 'Log in' in views, update tests
2014-08-06 13:32:02 -04:00
alexsoble
039b75ba83
Incorporated edits from @lucasmazza, wrote integration tests for password reminder feature
2014-08-06 11:04:46 -04:00