Removed ability to change display name if account is verified
if account is verified, display name input in settings is not visible if attempting to change the display name by other means, an error is return and you are redirected
This commit is contained in:
@@ -6,7 +6,12 @@
|
||||
|
||||
.fields-row
|
||||
.fields-row__column.fields-group.fields-row__column-6
|
||||
= f.input :display_name, wrapper: :with_label, input_html: { maxlength: 30 }, hint: false
|
||||
- if @account.is_verified
|
||||
%span Verified accounts cannot changed display names
|
||||
%br
|
||||
%br
|
||||
- else
|
||||
= f.input :display_name, wrapper: :with_label, input_html: { maxlength: 30 }, hint: false
|
||||
= f.input :note, wrapper: :with_label, input_html: { maxlength: 500 }, hint: false
|
||||
|
||||
.fields-row
|
||||
|
||||
Reference in New Issue
Block a user