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