Sha256: 589532fded2fd36f050414507b42eb1b64ae6d4dfea6bc8e52d3fc88fc2ab68c
Contents?: true
Size: 381 Bytes
Versions: 5
Compression:
Stored size: 381 Bytes
Contents
class PasswordsController < Clearance::PasswordsController def update @user = find_user_for_update if @user.update_password password_reset_params sign_in @user flash[:notice] = 'Password successfully changed' # <<- added redirect_to url_after_update else flash_failure_after_update render template: 'passwords/edit' end end end
Version data entries
5 entries across 5 versions & 1 rubygems