fix account form
This commit is contained in:
committed by
Oleksandr Turchyn
parent
37bb987e3e
commit
443ac23c29
@@ -19,6 +19,7 @@ class AccountsController < ApplicationController
|
|||||||
def update
|
def update
|
||||||
current_account.update!(account_params)
|
current_account.update!(account_params)
|
||||||
|
|
||||||
|
unless Docuseal.multitenant?
|
||||||
@encrypted_config = EncryptedConfig.find_or_initialize_by(account: current_account,
|
@encrypted_config = EncryptedConfig.find_or_initialize_by(account: current_account,
|
||||||
key: EncryptedConfig::APP_URL_KEY)
|
key: EncryptedConfig::APP_URL_KEY)
|
||||||
@encrypted_config.assign_attributes(app_url_params)
|
@encrypted_config.assign_attributes(app_url_params)
|
||||||
@@ -32,6 +33,7 @@ class AccountsController < ApplicationController
|
|||||||
@encrypted_config.save!
|
@encrypted_config.save!
|
||||||
|
|
||||||
Docuseal.refresh_default_url_options!
|
Docuseal.refresh_default_url_options!
|
||||||
|
end
|
||||||
|
|
||||||
with_locale do
|
with_locale do
|
||||||
redirect_to settings_account_path, notice: I18n.t('account_information_has_been_updated')
|
redirect_to settings_account_path, notice: I18n.t('account_information_has_been_updated')
|
||||||
|
|||||||
Reference in New Issue
Block a user