appoxy_sessions 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,7 +60,7 @@ module Appoxy
60
60
  redirect_to :controller=>"users", :action=>"new", :email=>user.email, :activation_code=>params[:activation_code] and return if user.password.blank?
61
61
 
62
62
  end
63
- redirect_to :controller=>"users", :action=>"new", :activation_code=>params[:activation_code]
63
+ redirect_to :controller=>"sessions", :action=>"new", :activation_code=>params[:activation_code]
64
64
  end
65
65
 
66
66
  after_authenticate
@@ -4,6 +4,8 @@ module Appoxy
4
4
  module SessionsController
5
5
 
6
6
  def create
7
+ before_create
8
+
7
9
  logout_keeping_session!
8
10
 
9
11
  #puts 'params=' + params.inspect
@@ -29,7 +31,7 @@ module Appoxy
29
31
  if !orig_url.nil?
30
32
  redirect_to orig_url # if entered via a different url
31
33
  else
32
- redirect_to :controller=>"projects"
34
+ after_create
33
35
  end
34
36
  user.last_login = Time.now
35
37
  user.save(:dirty=>true)
@@ -45,6 +47,13 @@ module Appoxy
45
47
 
46
48
  end
47
49
 
50
+ def before_create
51
+
52
+ end
53
+ def after_create
54
+
55
+ end
56
+
48
57
 
49
58
  def reset_password
50
59
  before_reset_password
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appoxy_sessions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 12
9
+ version: 0.0.12
5
10
  platform: ruby
6
11
  authors:
7
12
  - Travis Reeder
@@ -9,29 +14,33 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-15 00:00:00 -08:00
17
+ date: 2010-03-07 00:00:00 -08:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: simple_record
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
23
29
  version: "0"
24
- version:
30
+ type: :runtime
31
+ version_requirements: *id001
25
32
  - !ruby/object:Gem::Dependency
26
33
  name: recaptcha
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
33
41
  version: "0"
34
- version:
42
+ type: :runtime
43
+ version_requirements: *id002
35
44
  description: Appoxy Sessions gem description...
36
45
  email: travis@appoxy.com
37
46
  executables: []
@@ -61,18 +70,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
70
  requirements:
62
71
  - - ">="
63
72
  - !ruby/object:Gem::Version
73
+ segments:
74
+ - 0
64
75
  version: "0"
65
- version:
66
76
  required_rubygems_version: !ruby/object:Gem::Requirement
67
77
  requirements:
68
78
  - - ">="
69
79
  - !ruby/object:Gem::Version
80
+ segments:
81
+ - 0
70
82
  version: "0"
71
- version:
72
83
  requirements: []
73
84
 
74
85
  rubyforge_project:
75
- rubygems_version: 1.3.5
86
+ rubygems_version: 1.3.6
76
87
  signing_key:
77
88
  specification_version: 3
78
89
  summary: Appoxy Sessions gem