# Admin buitengesloten van site na verwijderen two-factor keys uit prefs

**URL:** https://meta.discourse.org/t/admin-locked-out-of-site-after-deleting-two-factor-keys-from-prefs/184193
**Category:** Bug
**Created:** [23 maart 2021 om 15:11 UTC](https://meta.discourse.org/t/admin-locked-out-of-site-after-deleting-two-factor-keys-from-prefs/184193 "2021-03-23T15:11:49Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![ewblen](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@ewblen](https://meta.discourse.org/u/ewblen)
#### Post date: [20 november 2021 om 09:53 UTC](https://meta.discourse.org/t/admin-locked-out-of-site-after-deleting-two-factor-keys-from-prefs/184193/13 "2021-11-20T09:53:58Z")

</div>

SOLUTION: As admin user, visit the locked-out user’s details page, scroll right to the bottom and click the red **Impersonate** button.  
Then in the user preferences, add a 2FA method. (need to have the user’s password to do this)  
The 2FA secret has to be given to the locked-out user.  
In this case I am both users, so not a difficult task 😉

---

_[View the full topic](https://meta.discourse.org/t/admin-locked-out-of-site-after-deleting-two-factor-keys-from-prefs/184193)._
