add logout route

This commit is contained in:
simon lehericey 2024-03-18 10:19:30 +01:00
parent e73318e3bb
commit 063445b892
4 changed files with 8 additions and 0 deletions

View file

@ -95,4 +95,9 @@ class Users::SessionsController < Devise::SessionsController
redirect_to link_sent_path(email: instructeur.email)
end
end
# agent connect callback
def logout
redirect_to root_path, notice: I18n.t('devise.sessions.signed_out')
end
end