Devise: Force user to change password

Created on 20 Nov 2011  路  7Comments  路  Source: heartcombo/devise

Would be nice when admin create & notify user, add module like ":forceable" to force user change password when he login first time.

Most helpful comment

I am also interested in functionality for "force password reset after first login with password", that isn't necessarily limited to first login to the account. Setting a temporary password that can only be used once, and after that requires a password change, is a common "enteprisey" feature.

All 7 comments

You could create that easily in your application with either a Warden hook or a before_filter, to check if that was the 1st time the user was signing in, and then redirect to a proper url to change user password. Shouldn't be hard, but I believe it's not something we should add to Devise itself. Thanks.

Hi,

i already created that before creating "issue" :) , just come to my mind as
idea for devise !

2011/11/20 Carlos Antonio da Silva <
[email protected]

You could create that easily in your application with either a Warden hook
or a before_filter, to check if that was the 1st time the user was signing
in, and then redirect to a proper url to change user password. Shouldn't be
hard, but I believe it's not something we should add to Devise itself.
Thanks.


Reply to this email directly or view it on GitHub:
https://github.com/plataformatec/devise/issues/1449#issuecomment-2803595

_Alexey Z.,_ :_skype_ _::_ _cat_of_duty_

Nice. I think there is a section in the wiki about Devise extensions, feel free to add it to the list then pointing to your repo.

@alexey thanks =), as Jos茅 said, it'd probably be a good extension.

Hi,

i already created that before creating "issue" :) , just come to my mind as
idea for devise !

2011/11/20 Carlos Antonio da Silva <
[email protected]

You could create that easily in your application with either a Warden hook
or a before_filter, to check if that was the 1st time the user was signing
in, and then redirect to a proper url to change user password. Shouldn't be
hard, but I believe it's not something we should add to Devise itself.
Thanks.

Reply to this email directly or view it on GitHub:
#1449 (comment)

_Alexey Z.,_ :_skype_ _::_ _cat_of_duty_

Any chance we could refer your solution?

I am also interested in functionality for "force password reset after first login with password", that isn't necessarily limited to first login to the account. Setting a temporary password that can only be used once, and after that requires a password change, is a common "enteprisey" feature.

I think having a flag to force password reset (for whatever reason) on next user login should be a critical function of Devise (which is excelent by the way), as this is a great way of blocking suspect accounts or even resetting the entire user database passwords.

Was this page helpful?
0 / 5 - 0 ratings