headstart 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
@@ -6,6 +6,7 @@ class Headstart::UsersController < ApplicationController
6
6
  filter_parameter_logging :password
7
7
  # Before Filter on *only* the 'uninstalled' method
8
8
  before_filter :verify_uninstall_signature, :only => [:facebook_remove]
9
+ skip_before_filter :verify_authenticity_token, :only => [:facebook_remove]
9
10
 
10
11
  def resend_welcome_email
11
12
  HeadstartMailer.deliver_welcome(current_user)
@@ -19,7 +20,7 @@ class Headstart::UsersController < ApplicationController
19
20
  if @fb_uid.present?
20
21
  # From here on it will be app specific -- given the facebook uid, destroy the user, like...
21
22
  @user = User.find_by_facebook_uid(@fb_uid)
22
- @user.destroy if @user
23
+ @user.update_attribute(:facebook_removed, Time.now) if @user
23
24
  end
24
25
  render :nothing => true; return
25
26
  end
@@ -10,9 +10,10 @@ class HeadstartCreateUsers < ActiveRecord::Migration
10
10
  t.string :remember_token, :limit => 128
11
11
  t.string :facebook_uid, :limit => 50
12
12
  t.string :password_reset_token, :limit => 128
13
- t.string :confirmation_token, :limit => 128
14
- t.boolean :email_confirmed, :default => false, :null => false
15
- t.datetime :email_confirmation_sent_at
13
+ t.string :confirmation_token, :limit => 128
14
+ t.boolean :email_confirmed, :default => false, :null => false
15
+ t.datetime :email_confirmation_sent_at
16
+ t.datetime :facebook_removed
16
17
 
17
18
  t.string :avatar_file_name
18
19
  t.string :avatar_content_type
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: headstart
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 0
10
- version: 0.9.0
9
+ - 1
10
+ version: 0.9.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bran Burridge