app/controllers/password_resets_controller.rb
# Checks expiration of reset token.
Checks expiration of reset token.
Checks expiration of reset token .
def require_unexpired_reset
    return unless @user.password_reset_expired?
    flash[:danger] = t('password_resets.reset_expired')
    redirect_to new_password_reset_url
  end
def require_unexpired_reset return unless @user . password_reset_expired? flash [ :danger ] = t ( 'password_resets.reset_expired' ) redirect_to new_password_reset_url end
Checks expiration of reset token.
Checks expiration of reset token .