diff --git a/api/admin.py b/api/admin.py index 0b45bd9a..8f57ee73 100644 --- a/api/admin.py +++ b/api/admin.py @@ -132,6 +132,7 @@ class UserProfileAdmin(AdminChangeLinksMixin, admin.ModelAdmin): change_links = ["user"] readonly_fields = ["avatar_tag"] search_fields = ["user__username","id"] + readonly_fields = ("public_key", "encrypted_private_key") @admin.register(Currency) diff --git a/frontend/src/components/UserGenPage.js b/frontend/src/components/UserGenPage.js index 41edc745..a2434938 100644 --- a/frontend/src/components/UserGenPage.js +++ b/frontend/src/components/UserGenPage.js @@ -225,7 +225,11 @@ class UserGenPage extends Component { - saveAsJson(this.state.nickname+'.json', this.createJsonFile())}> + saveAsJson(this.state.nickname+'.json', this.createJsonFile())} + > @@ -233,8 +237,12 @@ class UserGenPage extends Component { - (navigator.clipboard.writeText(this.state.token) & this.props.setAppState({copiedToken:true}))}> - + (navigator.clipboard.writeText(getCookie('robot_token')) & this.props.setAppState({copiedToken:true}))} + > +