fbdoorman 0.1.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -1
- data/README.md +10 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/app/controllers/clearance/facebook_controller.rb +2 -1
- data/app/controllers/clearance/passwords_controller.rb +5 -1
- data/app/views/passwords/fbuser.html.erb +5 -0
- data/lib/clearance/user.rb +1 -1
- metadata +5 -4
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
0.7 12/28/2010
|
3
|
+
----------------
|
4
|
+
|
5
|
+
Fb user cannot forget their passwords.
|
6
|
+
Fb user's email is recorded upon sign-up.
|
7
|
+
|
8
|
+
Added to the default permission, publish to strea??
|
9
|
+
Added mailer_sender to the settings, user 189 no deberia estar comentado??
|
2
10
|
|
3
11
|
0.6 08/27/2010
|
4
12
|
----------------
|
data/README.md
CHANGED
@@ -82,6 +82,16 @@ You should create facebook.yml inside config folder, this is what it should look
|
|
82
82
|
:after_register_path: /welcome/new #Where to go when a new user registers, use this to ask with a form for info specific to your app
|
83
83
|
:url_after_create: /welcome/logged Where to go when a session is created
|
84
84
|
|
85
|
+
|
86
|
+
Configure MailSender
|
87
|
+
---------
|
88
|
+
|
89
|
+
Clearance requires you to set the sender of the confirmation emails. E.g:
|
90
|
+
|
91
|
+
Clearance.configure do |config|
|
92
|
+
config.mailer_sender = 'No-reply <hello@something.com>'
|
93
|
+
end
|
94
|
+
|
85
95
|
Usage
|
86
96
|
-----
|
87
97
|
|
data/Rakefile
CHANGED
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
|
|
18
18
|
gem.summary = "Rails authentication with facebook single sign-on OR email & password."
|
19
19
|
gem.description = "Painless user registration and sign-in using Facebook single sign-on with JS. Typical email login still works too."
|
20
20
|
gem.email = "pelaez89@gmail.com"
|
21
|
-
gem.version = "0.
|
21
|
+
gem.version = "0.7.0"
|
22
22
|
gem.homepage = "http://github.com/davidpelaez/minifb-clearance"
|
23
23
|
gem.authors = ["Fbdoorman: David Pelaez","MiniFB: Appoxy","Clearance: Thoughtbot"]
|
24
24
|
gem.files = FileList["[A-Z]*", "{app,config,generators,lib,shoulda_macros,rails}/**/*"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
@@ -45,7 +45,8 @@ class Clearance::FacebookController < ApplicationController
|
|
45
45
|
def register_fbu(new_user)
|
46
46
|
@user = ::User.new
|
47
47
|
@user.fbid = new_user.id
|
48
|
-
@user.name = new_user.name
|
48
|
+
@user.name = new_user.name
|
49
|
+
@user.name = new_user.email
|
49
50
|
if @user.save
|
50
51
|
sign_in_fbu(@user)
|
51
52
|
else
|
@@ -7,7 +7,11 @@ class Clearance::PasswordsController < ApplicationController
|
|
7
7
|
filter_parameter_logging :password, :password_confirmation
|
8
8
|
|
9
9
|
def new
|
10
|
-
|
10
|
+
if user_from_fb? then
|
11
|
+
render :template => 'passwords/fbuser'
|
12
|
+
else
|
13
|
+
render :template => 'passwords/new'
|
14
|
+
end
|
11
15
|
end
|
12
16
|
|
13
17
|
def create
|
data/lib/clearance/user.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fbdoorman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 7
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.7.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Fbdoorman: David Pelaez"
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-
|
20
|
+
date: 2010-12-29 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies: []
|
23
23
|
|
@@ -47,6 +47,7 @@ files:
|
|
47
47
|
- app/views/facebook/_fbjs.html.erb
|
48
48
|
- app/views/facebook/closed.html.erb
|
49
49
|
- app/views/passwords/edit.html.erb
|
50
|
+
- app/views/passwords/fbuser.html.erb
|
50
51
|
- app/views/passwords/new.html.erb
|
51
52
|
- app/views/sessions/new.html.erb
|
52
53
|
- app/views/users/_form.html.erb
|