# Require mail confirmation to grant admin privileges

**URL:** <https://meta.discourse.org/t/require-mail-confirmation-to-grant-admin-privileges/60164>\
**Category:** Feature\
**Created:** [Março 30, 2017, 9:05am UTC](https://meta.discourse.org/t/require-mail-confirmation-to-grant-admin-privileges/60164 "2017-03-30T09:05:47Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [Setembro 22, 2017, 4:14pm UTC](https://meta.discourse.org/t/require-mail-confirmation-to-grant-admin-privileges/60164/12 "2017-09-22T16:14:53Z")

</div>

Speaking of getting hashed user passwords…

How about creating a second database role for the [Data Explorer](https://meta.discourse.org/t/32566?silent=true)?

```plaintext
grant select on #{database} to discourse_data_explorer;
revoke select password_hash, auth_token on users from discourse_data_explorer;
# repeat for other sensitive columns

#in data explorer execute:
Begin;
Set read only blah blah;
Set local role discourse_data_explorer;

```

(Note that this doesn’t actually work, revokes undo grants and can’t carve out of them)

---

_[View the full topic](https://meta.discourse.org/t/require-mail-confirmation-to-grant-admin-privileges/60164)._
