# Bug when discobot assigns the name in the certificate

**URL:** <https://meta.discourse.org/t/bug-when-discobot-assigns-the-name-in-the-certificate/64220>\
**Category:** Bug\
**Tags:** discobot\
**Created:** [June 9, 2017, 10:38am UTC](https://meta.discourse.org/t/bug-when-discobot-assigns-the-name-in-the-certificate/64220 "2017-06-09T10:38:18Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [June 12, 2017, 11:12am UTC](https://meta.discourse.org/t/bug-when-discobot-assigns-the-name-in-the-certificate/64220/11 "2017-06-12T11:12:08Z")

</div>

```plaintext
user = User.find_by(username: 'Dax')
[1] pry(main)> user = User.find_by(username: 'Dax')
=> #<User:0x0055643d3b5690
 id: 7,
 username: "Dax",
 created_at: Sat, 14 Dec 2013 23:02:47 UTC +00:00,
 updated_at: Sun, 11 Jun 2017 21:20:55 UTC +00:00,
 name: "SupportTeam",
 seen_notification_id: 276379,
 last_posted_at: Sun, 11 Jun 2017 21:20:55 UTC +00:00,
 email: "xxxxx@gmail.com",
 password_hash:
  "826b15de7d524221c26e2xxxxxxxxxxxxxxxxxxxxxxe1cf2",
 salt: "e57b795axxxxxxxxxxx99b74f4",
 active: true,
 username_lower: "dax",
 last_seen_at: Mon, 12 Jun 2017 11:01:58 UTC +00:00,
 admin: true,
 last_emailed_at: Mon, 12 Jun 2017 10:08:24 UTC +00:00,
 trust_level: 4,
 approved: false,
 approved_by_id: nil,
 approved_at: nil,
 previous_visit_at: Sun, 11 Jun 2017 21:20:54 UTC +00:00,
 suspended_at: nil,
[2] pry(main)>
[3] pry(main)> (user.name && !user.name.blank? ? user.name : user.username).titleize
=> "Support Team"
[4] pry(main)>

```

Changed password hash, email and salt.

Before running the command we have upgraded all again.

In our forum the “name” should be blank because we never set it. And SupportTeam is the name of our first old custom group (set as primary) before we rework all the groups. This group has been deleted for a long time

---

_[View the full topic](https://meta.discourse.org/t/bug-when-discobot-assigns-the-name-in-the-certificate/64220)._
