# How to do password expire after 15 days?

**URL:** <https://www.ruby-forum.com/t/how-to-do-password-expire-after-15-days/183204>\
**Category:** Rails\
**Created:** [February 9, 2010, 11:14pm UTC](https://www.ruby-forum.com/t/how-to-do-password-expire-after-15-days/183204 "2010-02-09T23:14:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maycon\_Felici](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b5e925/32.png) [@Maycon\_Felici](https://www.ruby-forum.com/u/Maycon_Felici)\
**Post date:** [February 9, 2010, 11:14pm UTC](https://www.ruby-forum.com/t/how-to-do-password-expire-after-15-days/183204/1 "2010-02-09T23:14:00Z")

</div>

Hello, I need to create a application wich registereds users have  
yours passwords expired after 15 days in order that I can generate a  
new password and send them by email.

Tanks,

Sorry, my english no good.

---

<div class="post-metadata">

**Author:** ![Maycon\_Felici](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b5e925/32.png) [@Maycon\_Felici](https://www.ruby-forum.com/u/Maycon_Felici)\
**Post date:** [February 10, 2010, 11:37am UTC](https://www.ruby-forum.com/t/how-to-do-password-expire-after-15-days/183204/2 "2010-02-10T11:37:20Z")

</div>

Your question has too wide a scope.  
What part are you having trouble with? Generating a new password,  
sending the new password by mail, or making a scheduler that resets  
passwords older than 15 days?

---

<div class="post-metadata">

**Author:** ![Maycon\_Felici](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b5e925/32.png) [@Maycon\_Felici](https://www.ruby-forum.com/u/Maycon_Felici)\
**Post date:** [February 10, 2010, 12:54pm UTC](https://www.ruby-forum.com/t/how-to-do-password-expire-after-15-days/183204/3 "2010-02-10T12:54:30Z")

</div>

Hi Sharagoz,

In realy nothing was made yet but i’m searching the best to do that. I  
will try explain again.

My application have any resources that i need to share with others  
users, for example CVs, but i need release the access by send data  
like password and login by email, and ensure validity of login for 15  
days. After 15 days will necessary contact me for reactivate access.

I think that your question is all that i need.
