]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Qualify SCALE properly - apparently object visibility when running the
[rails.git] / app / controllers / user_controller.rb
index 6d69b512011647f8bac599267299eb44e780d0ed..f4ff7fb7098bad18bf7dd28f293ffd4c7d6102ec 100644 (file)
@@ -109,8 +109,9 @@ class UserController < ApplicationController
       token = UserToken.find_by_token(params[:token])
 
       if token
+        @user = token.user
+
         if params[:user]
-          @user = token.user
           @user.pass_crypt = params[:user][:pass_crypt]
           @user.pass_crypt_confirmation = params[:user][:pass_crypt_confirmation]
           @user.active = true