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:
mgabdev
2019-07-04 02:01:50 -04:00
parent 70e3cef5a6
commit 4354c6ec99
2 changed files with 17 additions and 6 deletions

View File

@@ -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