<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -90,7 +90,7 @@ class UsersController &lt; ApplicationController
       authenticate_with_open_id(params[:open_id_url], :return_to =&gt; open_id_create_url,
         :required =&gt; [:nickname, :email]) do |result, identity_url, registration|
         if result.successful?
-          create_new_user(:identity_url =&gt; identity_url, :login =&gt; registration['nickname'], :email =&gt; registration['email'])
+          create_new_user(:identity_url =&gt; identity_url, :login =&gt; identity_url, :email =&gt; registration['email'])
         else
           failed_creation(result.message || &quot;Sorry, something went wrong&quot;)
         end</diff>
      <filename>app/controllers/users_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -97,46 +97,5 @@ protected
     # Give the user a profile
     self.profile = Profile.create    
   end
-  
-# --------
-
-  # Virtual attribute for the unencrypted password
-  # attr_accessor :password
-  
-  # Per page pagination
-  # TODO: Replace with searchgasm
-  # cattr_reader :per_page
-  # @@per_page = 25
-
-
-
-
-  # Encrypts some data with the salt.
-  # def self.encrypt(password, salt)
-  #   Digest::SHA1.hexdigest(&quot;--#{salt}--#{password}--&quot;)
-  # end
-
-
-  
-
-  
-    # before filter 
-    # def encrypt_password
-    #   return if password.blank?
-    #   self.salt = Digest::SHA1.hexdigest(&quot;--#{Time.now.to_s}--#{login}--&quot;) if new_record?
-    #   self.crypted_password = encrypt(password)
-    # end
-    
-
-    
-    # def do_delete
-    #   self.deleted_at = Time.now.utc
-    # end
-    # 
-    # def do_activate
-    #   self.activated_at = Time.now.utc
-    #   self.deleted_at = self.activation_code = nil
-    # end
-    
 
 end</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-&lt;% @user.password = @user.password_confirmation = nil %&gt;
+&lt;% (@user.password = @user.password_confirmation = nil) rescue nil %&gt;
 
 &lt;% content_for :header do -%&gt;
 Create a new &lt;%= configatron.site_name %&gt; account</diff>
      <filename>app/views/users/new.rhtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3fac4e01db394cc436a29306758d272e9df35338</id>
    </parent>
  </parents>
  <author>
    <name>Ariejan de Vroom</name>
    <email>ariejan@ariejan.net</email>
  </author>
  <url>http://github.com/ariejan/baseapp/commit/89422374684f30d6be6031ce5c8be0fe24f9a6f7</url>
  <id>89422374684f30d6be6031ce5c8be0fe24f9a6f7</id>
  <committed-date>2008-12-22T05:44:23-08:00</committed-date>
  <authored-date>2008-12-22T05:44:23-08:00</authored-date>
  <message>Fixed OpenID login and signup</message>
  <tree>0d9dcc34da279dbc8d0ea4c11914d22f6d635876</tree>
  <committer>
    <name>Ariejan de Vroom</name>
    <email>ariejan@ariejan.net</email>
  </committer>
</commit>
