mirror of
https://github.com/openSUSE/osem.git
synced 2026-01-24 22:11:19 -05:00
15 lines
288 B
Ruby
15 lines
288 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ConfirmationsController < Devise::ConfirmationsController
|
|
protected
|
|
|
|
def after_confirmation_path_for(_resource_name, resource)
|
|
if signed_in?
|
|
signed_in_root_path(resource)
|
|
else
|
|
sign_in resource
|
|
root_path
|
|
end
|
|
end
|
|
end
|