mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
disable edit password
This commit is contained in:
1 parent
284204fd78
commit
1245ff2cce
2 files changed
+7
-5
No files matched your search
@@ -54,7 +54,7 @@ class UsersController < ApplicationController
|
||||
@user.account = account
|
||||
end
|
||||
|
||||
if @user.update(attrs.except(*(current_user == @user ? %i[otp_required_for_login role] : nil)))
|
||||
if @user.update(attrs.except(*(current_user == @user ? %i[password otp_required_for_login role] : %i[password])))
|
||||
redirect_back fallback_location: settings_users_path, notice: I18n.t('user_has_been_updated')
|
||||
else
|
||||
render turbo_stream: turbo_stream.replace(:modal, template: 'users/edit'), status: :unprocessable_content
|
||||
|
||||
Reference in new issue
Block a user