headstart 0.8.0 → 0.9.0
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 +1 -1
- data/app/controllers/headstart/users_controller.rb +10 -0
- data/app/views/generic_mailer/change_password.text.html.erb +4 -4
- data/app/views/generic_mailer/welcome.text.html.erb +4 -4
- data/generators/headstart/templates/app/helpers/users_helper.rb +1 -1
- data/generators/headstart/templates/application.html.erb +2 -2
- data/generators/headstart/templates/migrations/create_users.rb +1 -1
- data/lib/headstart/routes.rb +3 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.9.0
|
@@ -7,6 +7,13 @@ class Headstart::UsersController < ApplicationController
|
|
7
7
|
# Before Filter on *only* the 'uninstalled' method
|
8
8
|
before_filter :verify_uninstall_signature, :only => [:facebook_remove]
|
9
9
|
|
10
|
+
def resend_welcome_email
|
11
|
+
HeadstartMailer.deliver_welcome(current_user)
|
12
|
+
flash[:notice] = 'Your confirmation email has been resent.'
|
13
|
+
@user = current_user
|
14
|
+
render :template => 'users/edit'
|
15
|
+
end
|
16
|
+
|
10
17
|
def facebook_remove
|
11
18
|
@fb_uid = params[:fb_sig_user]
|
12
19
|
if @fb_uid.present?
|
@@ -41,6 +48,9 @@ class Headstart::UsersController < ApplicationController
|
|
41
48
|
|
42
49
|
def edit
|
43
50
|
@user = current_user
|
51
|
+
if !@user.email_confirmed?
|
52
|
+
flash[:notice] = 'Your account has not been confirmed yet. Please confirm using the link in the Welcome email sent to you. Click <a href="/resend_welcome_email">here</a> to resend confirmation email.'
|
53
|
+
end
|
44
54
|
render :template => 'users/edit'
|
45
55
|
end
|
46
56
|
|
@@ -1,7 +1,7 @@
|
|
1
|
-
Someone, hopefully you, has requested that we send you a link to change your password
|
1
|
+
<p>Someone, hopefully you, has requested that we send you a link to change your password.</p>
|
2
2
|
|
3
|
-
Here's the link
|
3
|
+
<p>Here's the link:</p>
|
4
4
|
|
5
|
-
|
5
|
+
<p><%= @url %></p>
|
6
6
|
|
7
|
-
If you didn't request this, ignore this email. Don't worry. Your password hasn't been changed
|
7
|
+
<p>If you didn't request this, ignore this email. Don't worry. Your password hasn't been changed.</p>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
Welcome to <%= Settings.title %>. Thanks for registering and trying it out. Please <%= link_to "click here", new_user_confirmation_url(
|
1
|
+
<p>Welcome to <%= Settings.title %>. Thanks for registering and trying it out. Please <%= link_to "click here", new_user_confirmation_url(
|
2
2
|
:user_id => @user,
|
3
3
|
:token => @user.confirmation_token,
|
4
|
-
:encode => false) %> to confirm you received this email and activate your account
|
4
|
+
:encode => false) %> to confirm you received this email and activate your account.</p>
|
5
5
|
|
6
|
-
Thank you
|
7
|
-
Team <%= Settings.title
|
6
|
+
<p>Thank you,<br/>
|
7
|
+
Team <%= Settings.title %></p>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
| <%= link_to 'Admin', "/admin" %>
|
44
44
|
<% end %>
|
45
45
|
|
46
|
-
| <%= link_to 'My Profile',
|
46
|
+
| <%= link_to 'My Profile', edit_user_path(current_user) %>
|
47
47
|
<% else %>
|
48
48
|
<%= link_to 'Sign in', sign_in_path %> |
|
49
49
|
<%= link_to 'Sign up', sign_up_path %>
|
@@ -55,7 +55,7 @@
|
|
55
55
|
<div id="content" class="container_12">
|
56
56
|
<div id="flash">
|
57
57
|
<%- flash.each do |key, value| -%>
|
58
|
-
<div class="<%= key %>_flash"><%=
|
58
|
+
<div class="<%= key %>_flash"><%= value %></div>
|
59
59
|
<%- end -%>
|
60
60
|
</div>
|
61
61
|
<%= yield %>
|
@@ -12,7 +12,7 @@ class HeadstartCreateUsers < ActiveRecord::Migration
|
|
12
12
|
t.string :password_reset_token, :limit => 128
|
13
13
|
t.string :confirmation_token, :limit => 128
|
14
14
|
t.boolean :email_confirmed, :default => false, :null => false
|
15
|
-
t.
|
15
|
+
t.datetime :email_confirmation_sent_at
|
16
16
|
|
17
17
|
t.string :avatar_file_name
|
18
18
|
t.string :avatar_content_type
|
data/lib/headstart/routes.rb
CHANGED
@@ -40,6 +40,9 @@ module Headstart
|
|
40
40
|
:controller => 'headstart/impersonations',
|
41
41
|
:only => :index
|
42
42
|
|
43
|
+
map.resend_welcome_email 'resend_welcome_email',
|
44
|
+
:controller => 'headstart/users',
|
45
|
+
:action => 'resend_welcome_email'
|
43
46
|
map.sign_up 'sign_up',
|
44
47
|
:controller => 'headstart/users',
|
45
48
|
:action => 'new'
|
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:
|
4
|
+
hash: 59
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 9
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.9.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bran Burridge
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-12 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|