Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> This commit refactors the entire application to replace the 'parties' concept with 'events'. All controllers, models, views, and related files have been updated to reflect this change. The parties table has been replaced with an events table, and all related functionality has been updated accordingly.
37 lines
824 B
Ruby
Executable File
37 lines
824 B
Ruby
Executable File
# frozen_string_literal: true
|
|
|
|
class Authentications::PasswordsController < Devise::PasswordsController
|
|
# GET /resource/password/new
|
|
# def new
|
|
# super
|
|
# end
|
|
|
|
# POST /resource/password
|
|
# def create
|
|
# super
|
|
# end
|
|
|
|
# GET /resource/password/edit?reset_password_token=abcdef
|
|
# def edit
|
|
# super
|
|
# end
|
|
|
|
# PUT /resource/password
|
|
# def update
|
|
# super
|
|
# end
|
|
|
|
# protected
|
|
|
|
# Override to set a flash message on successful password reset
|
|
def after_resetting_password_path_for(resource)
|
|
flash[:notice] = "Votre mot de passe a été changé avec succès. Vous êtes maintenant connecté."
|
|
super(resource)
|
|
end
|
|
|
|
# The path used after sending reset password instructions
|
|
# def after_sending_reset_password_instructions_path_for(resource_name)
|
|
# super(resource_name)
|
|
# end
|
|
end
|