Merge branch 'master' into openid
[rails.git] / app / controllers / user_controller.rb
index 41a0836..923a6cf 100644 (file)
@@ -298,7 +298,7 @@ class UserController < ApplicationController
         if params[:user]
           @user.pass_crypt = params[:user][:pass_crypt]
           @user.pass_crypt_confirmation = params[:user][:pass_crypt_confirmation]
-          @user.status = "active"
+          @user.status = "active" if @user.status == "pending"
           @user.email_valid = true
 
           if @user.save