<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Authlogic Account Activation Tutorial</title>
	<atom:link href="http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/</link>
	<description>Ruby on Rails Developer</description>
	<lastBuildDate>Sat, 28 Aug 2010 16:06:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Authlogic and Cucumber &#124; Vincent Prouillet</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-1359</link>
		<dc:creator>Authlogic and Cucumber &#124; Vincent Prouillet</dc:creator>
		<pubDate>Sun, 14 Mar 2010 00:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-1359</guid>
		<description>[...] For the Authlogic part, i&#8217;ll just refer to others tutorials since there are very good ones out there !  First the basic installation : GitHub Authlogic, you can see how easy it is to set up a complete authentication system with this amazing gem.  I then added the reset password functionality : Reset passwords with Autlogic.  And then I wanted to activate accounts by an email : Account Activation with Authlogic. [...]</description>
		<content:encoded><![CDATA[</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravindra Singh</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-1343</link>
		<dc:creator>Ravindra Singh</dc:creator>
		<pubDate>Thu, 14 Jan 2010 11:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-1343</guid>
		<description>after using reset_perishable_token!
i am getting different value of perishable token in db and in the e-mail
and when user visit the link due to the unmatched values user get error user not find in my production log
why is this?
i am using exactly your code for activation_instructions</description>
		<content:encoded><![CDATA[<p>after using reset_perishable_token!<br />
i am getting different value of perishable token in db and in the e-mail<br />
and when user visit the link due to the unmatched values user get error user not find in my production log<br />
why is this?<br />
i am using exactly your code for activation_instructions</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Chatfield</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-1342</link>
		<dc:creator>Jeremy Chatfield</dc:creator>
		<pubDate>Mon, 11 Jan 2010 18:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-1342</guid>
		<description>Thanks - very helpful article. If following this precisely, I think there&#039;s a step or two needed for app/views/users . The form partial requests the password, but that&#039;s not what the description of the process says. So we probably need to copy and trim the form (because views/users/edit.html.erb probably still needs to allow password updates, unless we have an openid record, while the new.html.erb needs to request only the email address?)</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; very helpful article. If following this precisely, I think there&#8217;s a step or two needed for app/views/users . The form partial requests the password, but that&#8217;s not what the description of the process says. So we probably need to copy and trim the form (because views/users/edit.html.erb probably still needs to allow password updates, unless we have an openid record, while the new.html.erb needs to request only the email address?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulf</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-1335</link>
		<dc:creator>Ulf</dc:creator>
		<pubDate>Sun, 03 Jan 2010 14:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-1335</guid>
		<description>Thanks for your tutorial!

I try to write a controller spec for create. I wonder how signup! can be mocked/stubbed? Something like 
User.stub!(:signup!).and_return(&quot;true&quot;)
doesn&#039;t work.</description>
		<content:encoded><![CDATA[<p>Thanks for your tutorial!</p>
<p>I try to write a controller spec for create. I wonder how signup! can be mocked/stubbed? Something like <br />
User.stub!(:signup!).and_return(&#8220;true&#8221;)<br />
doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rok</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-1320</link>
		<dc:creator>Rok</dc:creator>
		<pubDate>Sun, 27 Dec 2009 14:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-1320</guid>
		<description>Had the same issue as Jonathan, so I checked Authlogic docs, here&#039;s my activate! and singup! methods
&lt;pre lang=&quot;ruby&quot; line=&quot;1&quot;&gt;
	def signup!(params)
		self.login = params[:user][:login]
		self.email = params[:user][:email]
		self.password = params[:user][:password]
		save_without_session_maintenance
	end

	def activate!
		self.active = true
		UserSession.create!(self)
	end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Had the same issue as Jonathan, so I checked Authlogic docs, here&#8217;s my activate! and singup! methods</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">	<span style="color:#9966CC; font-weight:bold;">def</span> signup!<span style="color:#006600; font-weight:bold;">&#40;</span>params<span style="color:#006600; font-weight:bold;">&#41;</span>
		<span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">login</span> = params<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:user</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:login</span><span style="color:#006600; font-weight:bold;">&#93;</span>
		<span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">email</span> = params<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:user</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:email</span><span style="color:#006600; font-weight:bold;">&#93;</span>
		<span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">password</span> = params<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:user</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:password</span><span style="color:#006600; font-weight:bold;">&#93;</span>
		save_without_session_maintenance
	<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
	<span style="color:#9966CC; font-weight:bold;">def</span> activate!
		<span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">active</span> = <span style="color:#0000FF; font-weight:bold;">true</span>
		UserSession.<span style="color:#9900CC;">create</span>!<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF; font-weight:bold;">self</span><span style="color:#006600; font-weight:bold;">&#41;</span>
	<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-1256</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Wed, 09 Dec 2009 15:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-1256</guid>
		<description>How would one go about auto logging the user after account activation (without setting the password on activation)?

Authlogic&#039;s code is a bit too complicated for me to understand just yet, and I can&#039;t really figure it out.</description>
		<content:encoded><![CDATA[<p>How would one go about auto logging the user after account activation (without setting the password on activation)?</p>
<p>Authlogic&#8217;s code is a bit too complicated for me to understand just yet, and I can&#8217;t really figure it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donovan Bray</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-750</link>
		<dc:creator>Donovan Bray</dc:creator>
		<pubDate>Sun, 08 Nov 2009 01:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-750</guid>
		<description>I had to add a simple migration to avoid &#039;crypted_password&#039;  and &#039;password_salt&#039; cannot be null on saving the unactivated model.

http://gist.github.com/229014</description>
		<content:encoded><![CDATA[<p>I had to add a simple migration to avoid &#8216;crypted_password&#8217;  and &#8216;password_salt&#8217; cannot be null on saving the unactivated model.</p>
<p><a href="http://gist.github.com/229014" rel="nofollow">http://gist.github.com/229014</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Missing host to link to! Please provide :host parameter &#124; Authlogic Activation Gotcha &#124; Clayton Lengel-Zigich</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-709</link>
		<dc:creator>Missing host to link to! Please provide :host parameter &#124; Authlogic Activation Gotcha &#124; Clayton Lengel-Zigich</dc:creator>
		<pubDate>Thu, 05 Nov 2009 08:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-709</guid>
		<description>[...] you&#8217;ve followed my version of the authlogic account activation tutorial or the original version by Matt Hooks you might have run into this error:  Missing host to link to! [...]</description>
		<content:encoded><![CDATA[<p>[...] you&#8217;ve followed my version of the authlogic account activation tutorial or the original version by Matt Hooks you might have run into this error:  Missing host to link to! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-707</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 03 Nov 2009 17:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-707</guid>
		<description>Getting this error:

&quot;Missing host to link to! Please provide :host parameter or set default_url_options[:host]&quot;

Seems to be something wrong with the register_url command in the activation_instructions method in the model. Have you seen this before or know what this is?</description>
		<content:encoded><![CDATA[<p>Getting this error:</p>
<p>&#8220;Missing host to link to! Please provide :host parameter or set default_url_options[:host]&#8220;</p>
<p>Seems to be something wrong with the register_url command in the activation_instructions method in the model. Have you seen this before or know what this is?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clayton</title>
		<link>http://www.claytonlz.com/index.php/2009/07/authlogic-account-activation-tutorial/comment-page-1/#comment-705</link>
		<dc:creator>Clayton</dc:creator>
		<pubDate>Sat, 31 Oct 2009 05:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=274#comment-705</guid>
		<description>In this case notifier.rb is a mailer. So your notifier.rb file will look something like this
&lt;pre&gt;
class Notifier &lt; ActionMailer::Base
def activation_instructions(user)
  subject “Activation Instructions”
  from “Binary Logic Notifier “
  recipients user.email
  sent_on Time.now
  body :account_activation_url =&gt; register_url(user.perishable_token)
end

def activation_confirmation(user)
  subject “Activation Complete”
  from “Binary Logic Notifier “
  recipients user.email
  sent_on Time.now
  body :root_url =&gt; root_url
end

end
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>In this case notifier.rb is a mailer. So your notifier.rb file will look something like this</p>
<pre>
class Notifier &lt; ActionMailer::Base
def activation_instructions(user)
  subject &acirc;Activation Instructions&acirc;
  from &acirc;Binary Logic Notifier &acirc;
  recipients user.email
  sent_on Time.now
  body :account_activation_url =&gt; register_url(user.perishable_token)
end

def activation_confirmation(user)
  subject &acirc;Activation Complete&acirc;
  from &acirc;Binary Logic Notifier &acirc;
  recipients user.email
  sent_on Time.now
  body :root_url =&gt; root_url
end

end
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
