Sha256: cbae70e20ccc45030499443609f2c623f27bf12e7f4f58f3e5f92920666fb587

Contents?: true

Size: 538 Bytes

Versions: 44

Compression:

Stored size: 538 Bytes

Contents

# encoding: utf-8

module ConstructorCore
  class UsersController < ConstructorCore::ApplicationController
    def profile
      @user = current_user
    end

    def update_password
      @user = current_user

      if params[:user][:password] == params[:user][:password_confirm]
        @user.password = params[:user][:password]

        if @user.save
          redirect_to '/login', :notice => t(:password_changed)
          return
        end
      end

      redirect_to :back, :notice => t(:password_error_confirm)
    end
  end
end

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
constructor-core-1.0.0beta1 app/controllers/constructor_core/users_controller.rb
constructor-core-0.9.1 app/controllers/constructor_core/users_controller.rb
constructor-core-0.9.0 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.19 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.18 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.17 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.16 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.15 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.14 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.13 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.12 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.11 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.10 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.8 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.7 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.6 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.5 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.4 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.3 app/controllers/constructor_core/users_controller.rb
constructor-core-0.8.2 app/controllers/constructor_core/users_controller.rb