refinerycms 0.9.6.26 → 0.9.6.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.6.26
1
+ 0.9.6.27
@@ -2,7 +2,7 @@
2
2
  RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
3
3
 
4
4
  # Specified gem version of Refinery to use when vendor/plugins/refinery/lib/refinery.rb is not present.
5
- REFINERY_GEM_VERSION = '0.9.6.26' unless defined? REFINERY_GEM_VERSION
5
+ REFINERY_GEM_VERSION = '0.9.6.27' unless defined? REFINERY_GEM_VERSION
6
6
 
7
7
  # Boot Rails
8
8
  require File.join(File.dirname(__FILE__), 'boot')
@@ -2,6 +2,14 @@ class ChangeUsersColumnsForAuthlogic < ActiveRecord::Migration
2
2
  def self.up
3
3
  # Change users table to use Authlogic-compatible schema
4
4
  change_table "users" do |t|
5
+ User.all(:conditions => "`users`.reset_code IS NULL").each do |user|
6
+ new_code = Authlogic::Random.friendly_token
7
+ user.update_attribute(:reset_code, new_code)
8
+ end
9
+ User.all(:conditions => "`users`.remember_token IS NULL").each do |user|
10
+ new_code = Authlogic::Random.friendly_token
11
+ user.update_attribute(:remember_token, new_code)
12
+ end
5
13
  t.change :login , :string , :null => false # optional , you can use email instead , or both
6
14
  t.change :email , :string , :null => false # optional , you can use login instead , or both
7
15
  t.change :crypted_password , :string , :null => false # optional , see below
@@ -32,7 +32,7 @@ init_flash_messages = function(){
32
32
  }
33
33
 
34
34
  init_modal_dialogs = function(){
35
- $('a[href*="dialog=true"]').each(function(i, anchor)
35
+ $('a[href*="dialog=true"]').not('#dialog_container a').each(function(i, anchor)
36
36
  {
37
37
  $(anchor).click(function(e){
38
38
  iframe = $("<iframe id='dialog_iframe' src='" + $(this).attr('href') + "&amp;app_dialog=true" + "'></iframe>");
@@ -52,8 +52,8 @@ class UsersController < ApplicationController
52
52
  def forgot
53
53
  if request.post?
54
54
  if (user = User.find_by_email(params[:user][:email])).present?
55
- flash[:notice] = "An email has been sent to #{user.email} with a link to reset your password."
56
55
  user.deliver_password_reset_instructions!(request)
56
+ flash[:notice] = "An email has been sent to #{user.email} with a link to reset your password."
57
57
  redirect_back_or_default forgot_url
58
58
  else
59
59
  flash[:notice] = "Sorry, #{params[:user][:email]} isn't associated with any accounts. Are you sure you typed the correct email address?"
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 9
8
8
  - 6
9
- - 26
10
- version: 0.9.6.26
9
+ - 27
10
+ version: 0.9.6.27
11
11
  platform: ruby
12
12
  authors:
13
13
  - Resolve Digital
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-04-08 00:00:00 +12:00
20
+ date: 2010-04-13 00:00:00 +12:00
21
21
  default_executable:
22
22
  dependencies: []
23
23