Permalink
Browse files

Remove OpenID comments

  • Loading branch information...
1 parent 9a31e89 commit 9066100264f1062450768ae0022e7c15ac732340 @binarylogic binarylogic committed Dec 12, 2008
Showing with 0 additions and 15 deletions.
  1. +0 −7 app/models/user.rb
  2. +0 −2 app/models/user_session.rb
  3. +0 −6 app/views/user_sessions/new.html.erb
View
@@ -1,6 +1,4 @@
class User < ActiveRecord::Base
- # ALL of the following code is for OpenID integration. If you are not using OpenID in your app
- # just remove all of the following code, to the point where you User class is completely blank.
acts_as_authentic :login_field_validation_options => {:if => :openid_identifier_blank?}, :password_field_validation_options => {:if => :openid_identifier_blank?}
validate :normalize_openid_identifier
@@ -11,11 +9,6 @@ def openid_identifier_blank?
openid_identifier.blank?
end
- def deliver_password_reset_instructions!
- reset_perishable_token!
- Notifier.deliver_password_reset_instructions(self)
- end
-
private
def normalize_openid_identifier
begin
@@ -1,6 +1,4 @@
class UserSession < Authlogic::Session::Base
- # ALL of the following code is for OpenID integration. If you are not using OpenID in your app
- # just remove all of the following code, to the point where you UserSession class is completely blank.
attr_accessor :openid_identifier
def authenticating_with_openid?
@@ -9,12 +9,6 @@
<%= f.label :password %><br />
<%= f.password_field :password %><br />
</div>
- <!--
- Notice the following is for OpenID. If you are not implementing OpenID in your app, simply remove the following <div> block.
- Also, notice the <div id="login_container"> above, those fields do not need to be wrapped in a <div>, you can remove that as well.
- I apologize if this makes it a little confusing, I have been building this app with a number of tutorials and one of them has been
- OpenID integration.
- -->
<div id="openid_container"<% if @user_session.openid_identifier.blank? %> style="display: none;"<% end %>>
<%= f.label :openid_identifier, "OpenID" %> (or <%= link_to_function "login using a standard username / password", "$('login_container').toggle(); $('openid_container').toggle();" %>)<br /><br />
<%= f.text_field :openid_identifier %><br />

0 comments on commit 9066100

Please sign in to comment.